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 13
13
14
14
Using [ composer] ( https://getcomposer.org/download/ )
15
15
16
- ````
16
+ ``` bash
17
17
composer require antidot-fw/event-dispatcher
18
- ````
18
+ ```
19
19
20
20
### Using [ Laminas config Aggregator] ( https://docs.laminas.dev/laminas-config-aggregator/ )
21
21
@@ -27,7 +27,7 @@ it install the library automatically
27
27
28
28
#### Config
29
29
30
- ```` php
30
+ ``` php
31
31
<?php
32
32
/** @var \Psr\Container\ContainerInterface $container */
33
33
$container->set('config', [
@@ -41,10 +41,10 @@ $container->set('config', [
41
41
]
42
42
]
43
43
]);
44
- ````
44
+ ```
45
45
#### factory
46
46
47
- ```` php
47
+ ``` php
48
48
<?php
49
49
50
50
use Antidot\Event\Container\EventDispatcherFactory;
@@ -54,17 +54,15 @@ $factory = new EventDispatcherFactory();
54
54
55
55
$eventDispatcher = $factory->__invoke($container);
56
56
$container->set(EventDispatcherInterface::class, $eventDispatcher);
57
- ````
57
+ ```
58
58
59
59
#### Async Event Dispatcher Factory
60
60
61
-
62
-
63
61
``` bash
64
62
composer require react/event-loop
65
63
```
66
64
67
- ```` php
65
+ ``` php
68
66
<?php
69
67
70
68
use Antidot\Event\Container\AsyncEventDispatcherFactory;
@@ -74,7 +72,7 @@ $factory = new AsyncEventDispatcherFactory();
74
72
75
73
$eventDispatcher = $factory->__invoke($container);
76
74
$container->set(EventDispatcherInterface::class, $eventDispatcher);
77
- ````
75
+ ```
78
76
79
77
## Usage
80
78
You can’t perform that action at this time.
0 commit comments