{"action":"opened","issue":{"url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/838","repository_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin","labels_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/838/comments","events_url":"https://api.github.com/repos/Haehnchen/idea-php-symfony2-plugin/issues/838/events","html_url":"https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/838","id":195693255,"number":838,"title":"JMSDiExtraBundle support for annotation service definitions","user":{"login":"jtreminio","id":589398,"avatar_url":"https://avatars.githubusercontent.com/u/589398?v=3","gravatar_id":"","url":"https://api.github.com/users/jtreminio","html_url":"https://github.com/jtreminio","followers_url":"https://api.github.com/users/jtreminio/followers","following_url":"https://api.github.com/users/jtreminio/following{/other_user}","gists_url":"https://api.github.com/users/jtreminio/gists{/gist_id}","starred_url":"https://api.github.com/users/jtreminio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtreminio/subscriptions","organizations_url":"https://api.github.com/users/jtreminio/orgs","repos_url":"https://api.github.com/users/jtreminio/repos","events_url":"https://api.github.com/users/jtreminio/events{/privacy}","received_events_url":"https://api.github.com/users/jtreminio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-15T01:32:43Z","updated_at":"2016-12-15T01:32:43Z","closed_at":null,"body":"I see you added support in this ticket: https://github.com/Haehnchen/idea-php-symfony2-plugin/issues/245\r\n\r\nI have two classes:\r\n\r\n```\r\n<?php\r\n\r\nnamespace FirstBundle\\Entity;\r\n\r\nuse JMS\\DiExtraBundle\\Annotation AS DI;\r\n\r\n/**\r\n * @DI\\Service(\"mybundle.entity.answer_type\")\r\n */\r\nclass AnswerType\r\n{\r\n}\r\n\r\n```\r\n\r\nand\r\n\r\n```\r\n<?php\r\n\r\nnamespace SecondBundle\\Entity;\r\n\r\nuse JMS\\DiExtraBundle\\Annotation AS DI;\r\n\r\n/**\r\n * @DI\\Service(\"mybundle.entity.answer_type\")\r\n */\r\nclass AnswerType\r\n{\r\n}\r\n\r\n```\r\n\r\nMy config looks like:\r\n\r\n```\r\njms_di_extra:\r\n    locations:\r\n        all_bundles: false\r\n        bundles:\r\n            - FirstBundle\r\n            - SecondBundle\r\n        directories:\r\n            - \"%kernel.root_dir%/../src\"\r\n\r\n```\r\n\r\nInstantiating the object as: `$foo = $this->get('mybundle.entity.answer_type');` works, loading `SecondBundle`'s class first before falling back to `FirstBundle`'s.\r\n\r\nHowever, the service appears undefined via PHPStorm:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/589398/21208475/083235ae-c223-11e6-9905-0c08c0a1cd8c.png)\r\n\r\nMy settings window looks like:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/589398/21208492/2c61a932-c223-11e6-8102-b65ce9dbf3ea.png)\r\n\r\nAlthough that is from the annotations plugin.\r\n\r\nEvery interaction I have with your plugin has been so great, and I would love for this to work as well - is it possible?"}}
{"actor":{"display_login":"jtreminio"}}