Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
912 stars 137 forks source link

File templates doesn't work with Symfony 4 #1090

Open zakjakub opened 6 years ago

zakjakub commented 6 years ago

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

COil commented 6 years ago

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

MattBarda commented 6 years ago

Is there any way to fix it?

AlexKhram commented 6 years ago

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

twig

MattBarda commented 6 years ago

@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

er1z commented 6 years ago

Any news on this issue?

bettinz commented 5 years ago

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

er1z commented 5 years ago

@bettinz — nothing changed.

fyrye commented 2 years ago

For visual reference and clarification; the New Context menu items are missing unless the directory pathing is suffixed with Bundle (EG: src/AppBundle/Controller), the suggested folder structure prior to Symfony Flex. phpstorm-symfony-new-context

Otherwise when in the Symfony Flex directory structure, (EG: src/Controller) the context menu items are missing. phpstorm-symfony-new-context-missing