lolautruche / EzCoreExtraBundle

Extra features for eZ Platform (v1.x compatible with eZ Publish 5.4)
MIT License
28 stars 8 forks source link

[PHPStorm] Support goto for theme templates #17

Closed lolautruche closed 7 years ago

lolautruche commented 7 years ago

Themes feature introduce an @ezdesign special Twig namespace. By default this namespace is not recognized by PHPStorm Symfony plugin because it's a virtual namespace.

Solution would be to generate a ide-twig.json file using format supported by Symfony plugin (supported since v0.11.110)

Format must be:

{
  "namespaces": [
    {
      "namespace": "foo",
      "path": "some/relative/path"
    }
  ]
}