1 | <?php |
||
28 | class ContainerProxy |
||
29 | { |
||
30 | use AccessorTrait; |
||
31 | |||
32 | const SERVICE_APP = 'app'; |
||
33 | const SERVICE_CONTAINER = 'container'; |
||
34 | const CONFIG_FILENAME = 'services.yml'; |
||
35 | |||
36 | /** |
||
37 | * @var Application |
||
38 | */ |
||
39 | private $app; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $config = []; |
||
45 | |||
46 | /** |
||
47 | * @var Container |
||
48 | */ |
||
49 | private $container; |
||
50 | |||
51 | /** |
||
52 | * @return Container |
||
53 | */ |
||
54 | protected function get_container() |
||
58 | |||
59 | /** |
||
60 | * @codeCoverageIgnoreStart |
||
61 | * |
||
62 | * @param Application $app |
||
63 | * @param array $config |
||
64 | */ |
||
65 | public function __construct(Application $app, array $config) |
||
70 | // @codeCoverageIgnoreEnd |
||
71 | |||
72 | /** |
||
73 | * @param string $id Service identifier |
||
74 | * |
||
75 | * @return object |
||
76 | */ |
||
77 | public function __invoke($id) |
||
81 | |||
82 | /** |
||
83 | * @return ContainerBuilder |
||
84 | */ |
||
85 | private function instantiate_container() |
||
107 | |||
108 | /** |
||
109 | * @return ContainerBuilder |
||
110 | */ |
||
111 | private function create_container() |
||
123 | |||
124 | /** |
||
125 | * @param ContainerBuilder $container |
||
126 | */ |
||
127 | private function apply_extensions(ContainerBuilder $container) |
||
142 | |||
143 | /** |
||
144 | * @return array |
||
145 | */ |
||
146 | private function collect_extensions() |
||
158 | |||
159 | /** |
||
160 | * @param ContainerBuilder $container |
||
161 | */ |
||
162 | private function apply_services(ContainerBuilder $container) |
||
178 | |||
179 | /** |
||
180 | * @return array |
||
181 | */ |
||
182 | private function collect_services() |
||
200 | |||
201 | /** |
||
202 | * @param ContainerBuilder $container |
||
203 | * @param ContainerPathname $pathname |
||
204 | * @param string $class |
||
205 | */ |
||
206 | private function dump_container(ContainerBuilder $container, ContainerPathname $pathname, $class) |
||
212 | } |
||
213 |