1 | <?php |
||
27 | class BlastCoreExtension extends Extension |
||
28 | { |
||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function load(array $configs, ContainerBuilder $container) |
||
47 | |||
48 | /** |
||
49 | * @return self |
||
50 | */ |
||
51 | public function initialize() |
||
62 | |||
63 | /** |
||
64 | * the buildLoader returns the required FileLoader. |
||
65 | * |
||
66 | * @param ContainerBuilder $container |
||
67 | * |
||
68 | * @return FileLoader |
||
69 | */ |
||
70 | public function buildLoader(ContainerBuilder $container) |
||
74 | |||
75 | /** |
||
76 | * This method is called during the self::load() process, to add the logic related to SonataAdmin. |
||
77 | * |
||
78 | * @param FileLoader $loader |
||
79 | * |
||
80 | * @return self |
||
81 | */ |
||
82 | public function loadServices(FileLoader $loader) |
||
93 | |||
94 | /** |
||
95 | * This method is called after loading the services in the self::load() process, to load code generators. |
||
96 | * |
||
97 | * @param ContainerBuilder $container |
||
98 | * @param array $config |
||
99 | * |
||
100 | * @return self |
||
101 | */ |
||
102 | public function loadCodeGenerators(ContainerBuilder $container, array $config) |
||
106 | |||
107 | /** |
||
108 | * This method is called after loading the services in the self::load() process, to load data fixtures. |
||
109 | * |
||
110 | * @param ContainerBuilder $container |
||
111 | * @param FileLoader $loader |
||
112 | * |
||
113 | * @return self |
||
114 | */ |
||
115 | public function loadDataFixtures(ContainerBuilder $container, FileLoader $loader) |
||
119 | |||
120 | /** |
||
121 | * This method is called after loading the services in the self::load() process, to load data fixtures. |
||
122 | * |
||
123 | * @param ContainerBuilder $container |
||
124 | * |
||
125 | * @return self |
||
126 | */ |
||
127 | public function loadParameters(ContainerBuilder $container) |
||
136 | |||
137 | /** |
||
138 | * This method is called at the end of the self::load() process, to add security related logic. |
||
139 | * |
||
140 | * @param ContainerBuilder $container |
||
141 | * |
||
142 | * @return self |
||
143 | */ |
||
144 | public function loadSecurity(ContainerBuilder $container) |
||
148 | |||
149 | /** |
||
150 | * This method is called at the end of the self::load() process, to add the logic related to SonataAdmin. |
||
151 | * |
||
152 | * @param ContainerBuilder $container |
||
153 | * @param FileLoader $loader |
||
154 | * |
||
155 | * @return self |
||
156 | */ |
||
157 | public function loadSonataAdmin(ContainerBuilder $container, FileLoader $loader) |
||
169 | |||
170 | /** |
||
171 | * This method is called during the self::load() process, to add the logic related to SonataAdmin. |
||
172 | * |
||
173 | * @param ContainerBuilder $container |
||
174 | * @param array $config |
||
175 | * |
||
176 | * @return self |
||
177 | */ |
||
178 | public function loadListeners(ContainerBuilder $container, array $config) |
||
182 | |||
183 | /** |
||
184 | * This method is called at the end of the self::load() process, to add any logic needed. |
||
185 | * |
||
186 | * @param ContainerBuilder $container |
||
187 | * @param FileLoader $loader |
||
188 | * @param array $config |
||
189 | * |
||
190 | * @return self |
||
191 | */ |
||
192 | public function doLoad(ContainerBuilder $container, FileLoader $loader, array $config) |
||
196 | |||
197 | /** |
||
198 | * @param string $var the parameter name |
||
199 | * @param ContainerBuilder $container |
||
200 | * @param string $dir |
||
201 | * @param string $file_name |
||
202 | * |
||
203 | * @return self |
||
204 | */ |
||
205 | protected function mergeParameter($var, $container, $dir, $file_name = 'blast.yml') |
||
225 | } |
||
226 |
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: