Skip to content

Commit

Permalink
Fix Dispatcher namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Nov 16, 2020
1 parent ec22522 commit ace3e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/common.php
Expand Up @@ -5,12 +5,13 @@
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\EventDispatcher\ListenerProviderInterface;
use Yiisoft\Composer\Config\Builder;
use Yiisoft\EventDispatcher\Dispatcher\Dispatcher;
use Yiisoft\EventDispatcher\Provider\ListenerCollection;
use Yiisoft\EventDispatcher\Provider\Provider;
use Yiisoft\Yii\Event\ListenerCollectionFactory as Factory;

return [
ListenerCollection::class => static fn (Factory $factory) => $factory->create(require Builder::path('events')),
EventDispatcherInterface::class => Yiisoft\EventDispatcher\Dispatcher\Dispatcher::class,
EventDispatcherInterface::class => Dispatcher::class,
ListenerProviderInterface::class => Provider::class,
];

0 comments on commit ace3e98

Please sign in to comment.