1 | <?php |
||
26 | class BlastCoreExtension extends Extension |
||
27 | { |
||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function load(array $configs, ContainerBuilder $container) |
||
46 | |||
47 | /** |
||
48 | * @return self |
||
49 | */ |
||
50 | public function initialize() |
||
61 | |||
62 | /** |
||
63 | * the buildLoader returns the required FileLoader. |
||
64 | * |
||
65 | * @param ContainerBuilder $container |
||
66 | * |
||
67 | * @return FileLoader |
||
68 | */ |
||
69 | public function buildLoader(ContainerBuilder $container) |
||
73 | |||
74 | /** |
||
75 | * This method is called during the self::load() process, to add the logic related to SonataAdmin. |
||
76 | * |
||
77 | * @param FileLoader $loader |
||
78 | * |
||
79 | * @return self |
||
80 | */ |
||
81 | public function loadServices(FileLoader $loader) |
||
92 | |||
93 | /** |
||
94 | * This method is called after loading the services in the self::load() process, to load code generators. |
||
95 | * |
||
96 | * @param ContainerBuilder $container |
||
97 | * @param array $config |
||
98 | * |
||
99 | * @return self |
||
100 | */ |
||
101 | public function loadCodeGenerators(ContainerBuilder $container, array $config) |
||
105 | |||
106 | /** |
||
107 | * This method is called after loading the services in the self::load() process, to load data fixtures. |
||
108 | * |
||
109 | * @param ContainerBuilder $container |
||
110 | * @param FileLoader $loader |
||
111 | * |
||
112 | * @return self |
||
113 | */ |
||
114 | public function loadDataFixtures(ContainerBuilder $container, FileLoader $loader) |
||
118 | |||
119 | /** |
||
120 | * This method is called after loading the services in the self::load() process, to load data fixtures. |
||
121 | * |
||
122 | * @param ContainerBuilder $container |
||
123 | * |
||
124 | * @return self |
||
125 | */ |
||
126 | public function loadParameters(ContainerBuilder $container) |
||
135 | |||
136 | /** |
||
137 | * This method is called at the end of the self::load() process, to add security related logic. |
||
138 | * |
||
139 | * @param ContainerBuilder $container |
||
140 | * |
||
141 | * @return self |
||
142 | */ |
||
143 | public function loadSecurity(ContainerBuilder $container) |
||
147 | |||
148 | /** |
||
149 | * This method is called at the end of the self::load() process, to add the logic related to SonataAdmin. |
||
150 | * |
||
151 | * @param ContainerBuilder $container |
||
152 | * @param FileLoader $loader |
||
153 | * |
||
154 | * @return self |
||
155 | */ |
||
156 | public function loadSonataAdmin(ContainerBuilder $container, FileLoader $loader) |
||
168 | |||
169 | /** |
||
170 | * This method is called during the self::load() process, to add the logic related to SonataAdmin. |
||
171 | * |
||
172 | * @param ContainerBuilder $container |
||
173 | * @param array $config |
||
174 | * |
||
175 | * @return self |
||
176 | */ |
||
177 | public function loadListeners(ContainerBuilder $container, array $config) |
||
181 | |||
182 | /** |
||
183 | * This method is called at the end of the self::load() process, to add any logic needed. |
||
184 | * |
||
185 | * @param ContainerBuilder $container |
||
186 | * @param FileLoader $loader |
||
187 | * @param array $config |
||
188 | * |
||
189 | * @return self |
||
190 | */ |
||
191 | public function doLoad(ContainerBuilder $container, FileLoader $loader, array $config) |
||
195 | |||
196 | /** |
||
197 | * @param string $var the parameter name |
||
198 | * @param ContainerBuilder $container |
||
199 | * @param string $dir |
||
200 | * @param string $file_name |
||
201 | * |
||
202 | * @return self |
||
203 | */ |
||
204 | protected function mergeParameter($var, $container, $dir, $file_name = 'blast.yml') |
||
224 | } |
||
225 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: