1 | <?php |
||
7 | class CompositeContainer implements ContainerInterface |
||
8 | { |
||
9 | /** @var ContainerInterface[] */ |
||
10 | private $containers = []; |
||
11 | |||
12 | public function addDelegateContainer(ContainerInterface $delegateContainer) |
||
13 | { |
||
14 | $this->containers[] = $delegateContainer; |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @throws NotFoundExceptionInterface |
||
19 | * |
||
20 | * @param string $serviceId |
||
21 | * @return mixed |
||
22 | */ |
||
23 | public function get($serviceId) |
||
32 | |||
33 | /** |
||
34 | * @param string $serviceId |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function has($serviceId) |
||
46 | } |
||
47 |