rudra / event-dispatcher
Rudra framework
v2.0.0
2018-08-06 14:50 UTC
Requires
- php: >=7.1
- rudra/container: v2.0.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-11-30 01:41:52 UTC
README
Rudra-EventDispatcher | API
Диспетчер событий
Установка / Install
composer require rudra/event-dispatcher
Использование / Usage
use Rudra\Container; use Rudra\EventDispatcher; use Rudra\Interfaces\ContainerInterface;
$rudra = Container::app();
Вызов из контейнера / use container
$services = [ 'contracts' => [ ContainerInterface::class => $rudra, ], 'services' => [ // Another services 'event.dispatcher' => ['Rudra\EventDispatcher'], // Another services ] ];
$rudra->setServices($services);