Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "weak route" in Symfony 2?

When using the Symfony2 plugin for PHPStorm, I sometimes see a Weak Route warning: Weak route

What does it mean?

like image 930
Tamlyn Avatar asked May 28 '14 11:05

Tamlyn


1 Answers

Worked it out. The Symfony2 plugin parses the appDevDebugProjectContainer.php file to get route and service information. However this file is only recompiled when the web page is loaded which means newly created routes are not included.

To get around this the plugin also parses the config files but this is not 100% reliable so routes discovered in this way are marked as "weak". Reloading the web page will make the warning go away.

like image 154
Tamlyn Avatar answered Oct 19 '22 21:10

Tamlyn