Skip to content

Support for symfony root in module (subdirectory) #131

Open
@mtal

Description

@mtal

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions