1 | <?php |
||
14 | class Registry |
||
15 | { |
||
16 | /** @var MutableContainerInterface[] */ |
||
17 | private $registry = []; |
||
18 | |||
19 | /** |
||
20 | * @param MutableContainerInterface $container |
||
21 | * |
||
22 | * @throws ContainerAlreadyRegisteredException |
||
23 | */ |
||
24 | public function addContainer(MutableContainerInterface $container): void |
||
33 | |||
34 | /** |
||
35 | * @param RegistrableItemInterface $item |
||
36 | * |
||
37 | * @throws ContainerIsNotRegisteredException |
||
38 | */ |
||
39 | public function register(RegistrableItemInterface $item): void |
||
49 | |||
50 | /** |
||
51 | * @param string $containerName |
||
52 | * |
||
53 | * @return MutableContainerInterface |
||
54 | * |
||
55 | * @throws ContainerIsNotRegisteredException |
||
56 | */ |
||
57 | public function getContainer(string $containerName): MutableContainerInterface |
||
65 | } |
||
66 |