rudra/event-dispatcher

v2.0.0 2018-08-06 14:50 UTC

This package is auto-updated.

Last update: 2024-11-30 01:41:52 UTC


README

PHPunit Scrutinizer Code Quality Code Climate CodeFactor

Code Intelligence Status Latest Stable Version Total Downloads GitHub

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); 

Rudra-EventDispatcher