1 | <?php |
||
18 | final class SymfonyContainerAdapter implements ContainerInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string[] |
||
22 | */ |
||
23 | private $symfonyToNetteServiceAliases; |
||
24 | |||
25 | /** |
||
26 | * @var Container |
||
27 | */ |
||
28 | private $container; |
||
29 | |||
30 | /** |
||
31 | * @param string[] $symfonyToNetteServiceAliases |
||
32 | * @param Container $container |
||
33 | */ |
||
34 | 8 | public function __construct(array $symfonyToNetteServiceAliases, Container $container) |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 1 | public function set($id, $service) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 3 | public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 3 | public function has($id) |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 3 | public function getParameter($name) |
|
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | 4 | public function hasParameter($name) |
|
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | 1 | public function setParameter($name, $value) |
|
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | 1 | public function initialized($id) |
|
111 | } |
||
112 |