Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHPStorm][annotations] Missing route with "Test" #897

Closed
jbartfay opened this issue Mar 20, 2017 · 1 comment
Closed

[PHPStorm][annotations] Missing route with "Test" #897

jbartfay opened this issue Mar 20, 2017 · 1 comment
Labels

Comments

@jbartfay
Copy link

Routes are not being indexed if controller file name contains "Test".

I have a controller called TestPageController.php that displays TestPage entities. Routes are defined with '@route("foo", name="bar")' annotations. Route hints in PHP and twig don't work. If I rename the controller so that the file name does not contain "Test", then hinting works.

I've narrowed it down to https://github.com/Haehnchen/idea-php-symfony2-plugin/blob/master/src/fr/adrienbrault/idea/symfony2plugin/stubs/indexes/ContainerBuilderStubIndex.java#L115 (isValidForIndex method)

Isn't it a little aggressive to ignore anything with "Test" in its name?

Either way, thanks for the excellent plugin.

@Haehnchen
Copy link
Owner

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants