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

Support for symfony root in module (subdirectory) #131

Open
mtal opened this issue Jul 30, 2013 · 2 comments
Open

Support for symfony root in module (subdirectory) #131

mtal opened this issue Jul 30, 2013 · 2 comments

Comments

@mtal
Copy link

mtal commented Jul 30, 2013

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
Copy link
Owner

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
Copy link
Author

mtal commented Aug 17, 2013

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

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

No branches or pull requests

2 participants