Haehnchen / idea-php-symfony2-plugin

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

Support for symfony root in module (subdirectory) #131

Open mtal opened 11 years ago

mtal commented 11 years ago

Intellij IDEA supports module based projects. This means that IDEA project is like a namespace of phpstorms projects. And root of each module may be different to project root. But idea-php-symfony2-plugin works correctly only if symfony located in project root.

For example the project root is "/home/mtal/projects/sample". Inside project I created a module located at "/home/mtal/projects/sample/module" and put there symfony code. In Symfony2 Plugin settings I configured "Path to urlGenerator.php", "Translation Root Path", "App Directory", "Web Directory" correctly (added prefix "sample/" to default values). But after enabling plugin and restarting IDE I got a warning "Symfony2 Plugin: missing at least one container file". The plugin works incorrectly. The errors of missing assets appears and root templates appears in code, the symfony framework for plugin controllers (for example 'form.factory') are missing to.

I suggest to add a new option "Symfony root" in settings dialog to solve this problem.

Haehnchen commented 11 years ago

do you know a simple tutorial / doc on that? not only the path is a problem, whats about eg the module container config. its per "module" than and not per "project". which is similar to a file scope mentioned in #13

mtal commented 11 years ago

I'm not talking about several symfony modules per project.

idea-php-symfony2-plugin does not work correctly with only one symfony module if symfony located at subdirectory of project