Idea-php-symfony2-plugin: File templates doesn't work with Symfony 4

Created on 26 Nov 2017  Â·  7Comments  Â·  Source: Haehnchen/idea-php-symfony2-plugin

File templates for Controller, Form, Command etc. doesn't work with the new directories structure from Symfony 4 (without AppBundle folder).

Most helpful comment

@AlexKhram I think You misunderstood the problem, it's about the file templates such as new->Controller or new->Form that are missing in "new" file menu after changing directory structure in Symfony4 from src/AppBundle/YourCode to just src/YourCode

All 7 comments

Seems logical. I think lot of things will have to be modified for Symfony4.

Is there any way to fix it?

This problem for Symfony 4 was solved by adding folder 'templates' to 'Manage Twig Namespaces'.
Settings -> Language & Frameworks -> PHP -> Symfony -> Twig / Templates

twig

@AlexKhram I think You misunderstood the problem, it's about the file templates such as new->Controller or new->Form that are missing in "new" file menu after changing directory structure in Symfony4 from src/AppBundle/YourCode to just src/YourCode

Any news on this issue?

Hello, I think it's still missing, am I correct? Thank you @er1z @MattBarda @Haehnchen

@bettinz — nothing changed.

Was this page helpful?
0 / 5 - 0 ratings