Description
Symfony version(s) affected: 4.4.0
Description
When running our test suite we saw this deprecation notice:
2x: Loading the file "../src/UI/Http/Web/Controller/" from the global resource directory "/app/src" is deprecated since Symfony 4.4 and will be removed in 5.0.
...that we can't really remove, the FrameworkBundle is injecting the $paths
parameter to the FileLocator
service and our routes.yaml resource, configured this way according to the docs:
web_controllers:
resource: '../src/UI/Http/Web/Controller/'
type: annotation
...is the one triggering this notification. AFAIK, this way of configuring the routes with relative paths is still the recommended way, but the deprecation notice seems to trigger whenever there's a non-absolute path being loaded, even though it doesn't use the deprecated $paths
variable in order to be located, which I believe is a little bit too extreme?