Routes
Required plugin: Symfony Support.
One of the cornerstones of developing a Symfony application is working with routes. The routing infrastructure ensures that we can use readable URLs (for example,
The Symfony Support plugin provides several facilities for working with routes.
PhpStorm provides code completion for functions that take a route name as an argument. In the editor, press CtrlSpace to invoke code completion for any of the following:
Specify arguments for such controller functions as
generateUrl
orforward
.Specify arguments for such Twig functions as
path
orcontroller
.
Since routes are linked to a controller, you can use Navigate to declaration Ctrl0B on a route to navigate to the corresponding controller. Alternatively, CtrlClick the service's name.

To navigate back to a route mapped to a controller, click the route icon in the editor gutter.

Whenever you use the name of a route that is not defined or misspelled, PhpStorm displays the corresponding warning from the Missing Route inspection.

Thanks for your feedback!