1 | <?php |
||
26 | final class ContainerBuilder implements BuilderInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var Alias[] |
||
30 | */ |
||
31 | private $aliases = []; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $parameters = []; |
||
37 | |||
38 | /** |
||
39 | * @var ServiceInterface[] |
||
40 | */ |
||
41 | private $services = []; |
||
42 | |||
43 | /** |
||
44 | * @var BuilderInterface|null |
||
45 | */ |
||
46 | private $parametersBuilder; |
||
47 | |||
48 | /** |
||
49 | * @var BuilderInterface|null |
||
50 | */ |
||
51 | private $aliasesBuilder; |
||
52 | |||
53 | /** |
||
54 | * @var BuilderInterface|null |
||
55 | */ |
||
56 | private $servicesBuilder; |
||
57 | |||
58 | 3 | public function __construct( |
|
67 | |||
68 | /** |
||
69 | * @param string $key |
||
70 | * @param array|Reference|string|Expression $value |
||
71 | */ |
||
72 | public function setParameter($key, $value) |
||
76 | |||
77 | /** |
||
78 | * @param Alias $alias |
||
79 | */ |
||
80 | public function addAlias(Alias $alias) |
||
84 | |||
85 | /** |
||
86 | * @param ServiceInterface $service |
||
87 | */ |
||
88 | public function addService(ServiceInterface $service) |
||
97 | |||
98 | 3 | public function build(Application $application) |
|
118 | |||
119 | private function getAndRebuilderDeprecatedService(DecorationInterface $service) |
||
126 | |||
127 | /** |
||
128 | * @param string $name |
||
129 | * @param ServiceInterface $service |
||
130 | * |
||
131 | * @return Service |
||
132 | */ |
||
133 | private function rebuildServiceWithName($name, ServiceInterface $service) |
||
143 | } |
||
144 |