Skip to content

[WebProfilerBundle] Route for _profiler is Symfony specific #6949

Closed
@henrikbjorn

Description

@henrikbjorn

When trying to use the Profiler and WebDebugToolbar outside of the fullstack framework the _profiler route's _controller is too specific as it uses FrameworkBundle:Redirect:redirect instead of a service as the other routes.

Current routes.

+--------------------------+-----------+------+-----------------------------------+---------------------------------------------------------+
| Name                     | Method    | Host | Path                              | Controller                                              |
+--------------------------+-----------+------+-----------------------------------+---------------------------------------------------------+
| _profiler_search         | ANY       |      | /_profiler/search                 | web_profiler.controller.profiler:searchAction           |
| _profiler_search_bar     | ANY       |      | /_profiler/search_bar             | web_profiler.controller.profiler:searchBarAction        |
| _profiler_purge          | ANY       |      | /_profiler/purge                  | web_profiler.controller.profiler:purgeAction            |
| _profiler_info           | ANY       |      | /_profiler/info/{about}           | web_profiler.controller.profiler:infoAction             |
| _profiler_import         | ANY       |      | /_profiler/import                 | web_profiler.controller.profiler:importAction           |
| _profiler_export         | ANY       |      | /_profiler/export/{token}.txt     | web_profiler.controller.profiler:exportAction           |
| _profiler_phpinfo        | ANY       |      | /_profiler/phpinfo                | web_profiler.controller.profiler:phpinfoAction          |
| _profiler_search_results | ANY       |      | /_profiler/{token}/search/results | web_profiler.controller.profiler:searchResultsAction    |
| _profiler                | ANY       |      | /_profiler/{token}                | web_profiler.controller.profiler:panelAction            |
| _profiler_router         | ANY       |      | /_profiler/{token}/router         | web_profiler.controller.router:panelAction              |
| _profiler_exception      | ANY       |      | /_profiler/{token}/exception      | web_profiler.controller.exception:showAction            |
| _profiler_exception_css  | ANY       |      | /_profiler/{token}/exception.css  | web_profiler.controller.exception:cssAction             |
| _profiler_redirect       | ANY       |      | /_profiler/                       | FrameworkBundle:Redirect:redirect                       |
| _wdt                     | ANY       |      | /_wdt/{token}                     | web_profiler.controller.profiler:toolbarAction          |
+--------------------------+-----------+------+-----------------------------------+---------------------------------------------------------+

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