We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d8dbfb + 8039bb3 commit 4b7540bCopy full SHA for 4b7540b
src/Domain/ContainerAwareEventDispatcherBus.php
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+namespace Rezzza\CommandBus\Domain;
4
5
+use Rezzza\CommandBus\Domain\EventDispatcherBus;
6
+use Symfony\Component\DependencyInjection\ContainerInterface;
7
8
+class ContainerAwareEventDispatcherBus extends EventDispatcherBus
9
+{
10
+ /**
11
+ * @var ContainerInterface
12
+ */
13
+ private $container;
14
15
16
+ * @param ContainerInterface $container
17
18
+ public function setContainer(ContainerInterface $container)
19
+ {
20
+ $this->container = $container;
21
+ }
22
23
24
+ * @return ContainerInterface
25
26
+ public function getContainer()
27
28
+ return $this->container;
29
30
+}
0 commit comments