Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Feature request: Confirm if class and action method exist for Symfony controller definition #285

Open
@DAcodedBEAT

Description

Currently, if a controller definition refers to a non-existent class/action method an error would be raised at time of route invocation.

example routing definition:

example_route:
 path: /example/route
 controller: nonexistent_controller_class::indexAction

When curl'ing this route, this raises the following exception:

InvalidArgumentException
The controller for URI "/example/route" is not callable: Controller "nonexistent_controller_class" does neither exist as service nor as class.

I would like phpstan-symfony to analyze route definitions so errors like this can be caught ahead of time rather than at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /