Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Symfony2 Plugin can be installed from within our IDE from IDE Settings | Plugins. In here, Here we can see the list of installed plugins and browse third-party plugin repositories using the Browse repositories... button. Do feel Feel free to explore several of the other plugins in there.

...

We can click the Project Settings hyperlink, or alternatively go through Project Settings | Symfony2 Plugin and tick select the check-box Enable Plugin for this Project checkbox. Clicking OK will save our changes to the settings. Note that PhpStorm will have to be restarted for the plugin to pick up this change in configuration.

...

Note

Depending on how our Symfony2 project is structured, we may have to change some other settings under Project Settings | Symfony2 Plugin. When working with a Symfony2 application that follows the structure generated by, for example, the symfony/framework-standard-edition Composer project, the default paths and settings will work fine.

Important! The appDevDebugProjectContainer.xml and appDevUrlGenerator.php should be located under Symfony2's default path in order to work with all features the Symfony2 Plugin provides. It will use a fallback mechanism when these files can not cannot be found, but completion and navigation will be less precise in this case.

When using a non-default project structure, the following paths should be updated in the Symfony2 Plugin settings:

  • Path to urlGenerator.php: path to Symfony2 URL generator.
  • Translation Root Path: path to where all translations are copied. This is best set to the translations path under the cache folder so all possible translations can be discovered by the plugin.
  • App Directory: path to the app directory.
  • Web Directory: path to the web directory.

...