Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[FrameworkBundle] Unable to remove deprecation notice in FileLocator? #34556

Copy link
Copy link
Closed
@acasademont

Description

@acasademont
Issue body actions

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.