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

@Template() complains about non-existing template, but it does work #999

Closed
rudiedirkx opened this issue Aug 11, 2017 · 3 comments
Closed
Labels

Comments

@rudiedirkx
Copy link

  • PHP Storm 2017.2.2 EAP
  • Symfony plugin 0.14.150
  • Project is Symfony 2.8.x
  • No plugin errors, I think?

sensio/framework-extra-bundle defines a @Template annotation to magically use the correct template. This works for every action in my controller, but the plugin complains about the template not existing for editAction. The template does exist, and works.

When I use the inspection action it wants to make ed.html.twig. Where is the it ?
If I rename the action to edit2Action, it wants to make edit2.html.twig, which is correct.
If I rename the action to edititAction, it wants to make ed.html.twig again, which is wrong.

The rest of the actions are fine (showAction, newAction, indexAction etc).

This happened in 2017.2.1 EAP and 2017.2 (not EAP) too. I'm not sure about before then...

(For me: BriefsjabloonController::editAction)

@rudiedirkx
Copy link
Author

Actual use case - warning:

screen-ps-sf-1

Actual use case - inspection action:

screen-ps-sf-2

edit2Action inspection action:

screen-ps-sf-3

edititAction inspection action:

screen-ps-sf-4

@druidvav
Copy link

druidvav commented Sep 6, 2017

Too bad there is no solution for that...

Haehnchen added a commit that referenced this issue Sep 6, 2017
Haehnchen added a commit that referenced this issue Sep 6, 2017
Haehnchen added a commit that referenced this issue Sep 6, 2017
@Haehnchen
Copy link
Owner

fixed shame on me :)

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

3 participants