You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 4.4:
Do not extend the new SF 4.3 ControllerEvent so we can make it final
Backported return type violation bugfixes.
fix deprecated call to setLocale with null
[FrameworkBundle] Fix BrowserKit assertions to make them compatible with Panther
[HttpKernel] deprecate global dir to load resources from
@trigger_error(sprintf('Passing more than one argument to %s is deprecated since Symfony 4.4 and will be removed in 5.0.', __METHOD__), E_USER_DEPRECATED);
44
+
}
45
+
} else {
46
+
$paths = [];
37
47
}
38
48
39
49
parent::__construct($paths);
@@ -45,9 +55,32 @@ public function __construct(KernelInterface $kernel, string $path = null, array
@trigger_error(sprintf('Loading the file "%s" from the global resource directory "%s" is deprecated since Symfony 4.4 and will be removed in 5.0.', $file, $deprecatedPath), E_USER_DEPRECATED);
@trigger_error(sprintf('Loading the file "%s" from the global resource directory "%s" is deprecated since Symfony 4.4 and will be removed in 5.0.', $file, $deprecatedPath), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing more than one argument to %s is deprecated since Symfony 4.4 and will be removed in 5.0.', __METHOD__), E_USER_DEPRECATED);
238
+
}
239
+
} else {
240
+
$dir = null;
241
+
$first = true;
242
+
}
243
+
234
244
if ('@' !== $name[0]) {
235
245
thrownew \InvalidArgumentException(sprintf('A resource name must start with @ ("%s" given).', $name));
236
246
}
@@ -252,6 +262,9 @@ public function locateResource(string $name, string $dir = null, bool $first = t
252
262
253
263
if ($isResource && file_exists($file = $dir.'/'.$bundle->getName().$overridePath)) {
254
264
$files[] = $file;
265
+
266
+
// see https://symfony.com/doc/current/bundles/override.html on how to overwrite parts of a bundle
267
+
@trigger_error(sprintf('Overwriting the resource "%s" with "%s" is deprecated since Symfony 4.4 and will be removed in 5.0.', $name, $file), E_USER_DEPRECATED);
255
268
}
256
269
257
270
if (file_exists($file = $bundle->getPath().'/'.$path)) {
0 commit comments