2017 © Pedro Peláez
 

library event-application-bridge

Bridge between event dispatcher and nette application

image

contributte/event-application-bridge

Bridge between event dispatcher and nette application

  • Wednesday, November 15, 2017
  • by f3l1x
  • Repository
  • 2 Watchers
  • 2 Stars
  • 7,614 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

, (*1)

, (*2)

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte , (*3)

Disclaimer

:warning: This project is no longer being maintained. Please use contributte/event-dispatcher-extra.
Composer contributte/event-application-bridge
Version
PHP
License

Versions

State Version Branch PHP
stable ^0.1 master >= 5.6

Documentation

Usage :tada:

extensions:
    events: Contributte\EventDispatcher\DI\EventDispatcherExtension
    events2application: Contributte\Events\Bridges\Application\DI\EventApplicationBridgeExtension

Bridge :wrench:

There are several Nette Application events on which you can listen to., (*4)

use Contributte\Events\Bridges\Application\Event\ApplicationEvents;
use Contributte\Events\Bridges\Application\Event\ErrorEvent;
use Contributte\Events\Bridges\Application\Event\PresenterEvent;
use Contributte\Events\Bridges\Application\Event\RequestEvent;
use Contributte\Events\Bridges\Application\Event\ResponseEvent;
use Contributte\Events\Bridges\Application\Event\ShutdownEvent;
use Contributte\Events\Bridges\Application\Event\StartupEvent;
  • StartupEvent::NAME && ApplicationEvents::ON_STARTUP
  • ShutdownEvent::NAME && ApplicationEvents::ON_SHUTDOWN
  • RequestEvent::NAME && ApplicationEvents::ON_REQUEST
  • PresenterEvent::NAME && ApplicationEvents::ON_PRESENTER
  • ResponseEvent::NAME && ApplicationEvents::ON_RESPONSE
  • ErrorEvent::NAME && ApplicationEvents::ON_ERROR

Subscriber :bulb:

use Contributte\EventDispatcher\EventSubscriber;
use Contributte\Events\Bridges\Application\Event\RequestEvent;

final class LogRequestSubscriber implements EventSubscriber
{

    /**
     * @return array
     */
    public static function getSubscribedEvents()
    {
        return [RequestEvent::NAME => 'onLog'];
    }

    /**
     * @param RequestEvent $event
     * @return void
     */
    public function onLog(RequestEvent $event)
    {
        // Do magic..
    }
}

Development

This package was maintain by these authors., (*5)

, (*6)


Consider to support contributte development team. Also thank you for being used this package., (*7)

The Versions

15/11 2017

dev-master

9999999-dev https://github.com/contributte/event-application-bridge

Bridge between event dispatcher and nette application

  Sources   Download

MIT

The Requires

 

The Development Requires

dispatcher application event nette bridge

19/07 2017

v0.1.1

0.1.1.0 https://github.com/contributte/event-application-bridge

Bridge between event dispatcher and nette application

  Sources   Download

MIT

The Requires

 

The Development Requires

dispatcher application event nette bridge

21/05 2017

v0.1

0.1.0.0 https://github.com/contributte/event-application-bridge

Bridge between event dispatcher and nette application

  Sources   Download

MIT

The Requires

 

The Development Requires

dispatcher application event nette bridge