File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1313
1414Using [ composer] ( https://getcomposer.org/download/ )
1515
16- ````
16+ ``` bash
1717composer require antidot-fw/event-dispatcher
18- ````
18+ ```
1919
2020### Using [ Laminas config Aggregator] ( https://docs.laminas.dev/laminas-config-aggregator/ )
2121
@@ -27,7 +27,7 @@ it install the library automatically
2727
2828#### Config
2929
30- ```` php
30+ ``` php
3131<?php
3232/** @var \Psr\Container\ContainerInterface $container */
3333$container->set('config', [
@@ -41,10 +41,10 @@ $container->set('config', [
4141 ]
4242 ]
4343]);
44- ````
44+ ```
4545#### factory
4646
47- ```` php
47+ ``` php
4848<?php
4949
5050use Antidot\Event\Container\EventDispatcherFactory;
@@ -54,17 +54,15 @@ $factory = new EventDispatcherFactory();
5454
5555$eventDispatcher = $factory->__invoke($container);
5656$container->set(EventDispatcherInterface::class, $eventDispatcher);
57- ````
57+ ```
5858
5959#### Async Event Dispatcher Factory
6060
61-
62-
6361``` bash
6462composer require react/event-loop
6563```
6664
67- ```` php
65+ ``` php
6866<?php
6967
7068use Antidot\Event\Container\AsyncEventDispatcherFactory;
@@ -74,7 +72,7 @@ $factory = new AsyncEventDispatcherFactory();
7472
7573$eventDispatcher = $factory->__invoke($container);
7674$container->set(EventDispatcherInterface::class, $eventDispatcher);
77- ````
75+ ```
7876
7977## Usage
8078
You can’t perform that action at this time.
0 commit comments