1 | <?php |
||
7 | class ContainerAwareEntityListenerResolver implements EntityListenerServiceResolver |
||
8 | { |
||
9 | /** |
||
10 | * @var ContainerInterface |
||
11 | */ |
||
12 | private $container; |
||
13 | |||
14 | /** |
||
15 | * @var array Map to store entity listener instances. |
||
16 | */ |
||
17 | private $instances = array(); |
||
18 | |||
19 | /** |
||
20 | * @var array Map to store registered service ids |
||
21 | */ |
||
22 | private $serviceIds = array(); |
||
23 | |||
24 | /** |
||
25 | * @param ContainerInterface $container |
||
26 | */ |
||
27 | public function __construct(ContainerInterface $container) |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function clear($className = null) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function register($object) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function registerService($className, $serviceId) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function resolve($className) |
||
89 | |||
90 | /** |
||
91 | * @param string $serviceId |
||
92 | * |
||
93 | * @return object |
||
94 | */ |
||
95 | private function resolveService($serviceId) |
||
103 | |||
104 | /** |
||
105 | * @param $className |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | private function normalizeClassName($className) |
||
113 | } |
||
114 |