{"action":"created","issue":{"url":"https://api.github.com/repos/schmittjoh/JMSDiExtraBundle/issues/186","labels_url":"https://api.github.com/repos/schmittjoh/JMSDiExtraBundle/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/schmittjoh/JMSDiExtraBundle/issues/186/comments","events_url":"https://api.github.com/repos/schmittjoh/JMSDiExtraBundle/issues/186/events","html_url":"https://github.com/schmittjoh/JMSDiExtraBundle/issues/186","id":54215607,"number":186,"title":"JMSDiExtra makes not callable actions in Controller","user":{"login":"stuzzo","id":6000769,"avatar_url":"https://avatars.githubusercontent.com/u/6000769?v=3","gravatar_id":"","url":"https://api.github.com/users/stuzzo","html_url":"https://github.com/stuzzo","followers_url":"https://api.github.com/users/stuzzo/followers","following_url":"https://api.github.com/users/stuzzo/following{/other_user}","gists_url":"https://api.github.com/users/stuzzo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuzzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuzzo/subscriptions","organizations_url":"https://api.github.com/users/stuzzo/orgs","repos_url":"https://api.github.com/users/stuzzo/repos","events_url":"https://api.github.com/users/stuzzo/events{/privacy}","received_events_url":"https://api.github.com/users/stuzzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-13T16:39:16Z","updated_at":"2015-10-27T23:45:40Z","closed_at":null,"body":"Hi,\r\nI noticed an issue with JMSDiExtraBundle version 1.5.0.\r\nIn my code I have a TestController that extends a BaseController (that not extends Symfony base controller). \r\nIn BaseController I put all my common properties that are injected, such as container or logger.\r\nNow, I added an action testAction in TestController and the message I receive when I call it is:\r\n\r\n ```php\r\nrequest.CRITICAL: Uncaught PHP Exception InvalidArgumentException: \"Controller \"ACME\\TestBundle\\Controller\\TestController::testAction\" for URI \"/test\" is not callable.\"\r\n```\r\nI figured out that the problem is coming from the class JMS\\DiExtraBundle\\HttpKernel\\ControllerResolver, line 83, because when it tries to call the action request, it calls the BaseController instead of TestController.\r\n\r\nTo resolve this issue in my code, I added a property in my TestController that contains a service injected, even if I not use it.\r\n\r\nI think that is a problem with reflection."},"comment":{"url":"https://api.github.com/repos/schmittjoh/JMSDiExtraBundle/issues/comments/151676917","html_url":"https://github.com/schmittjoh/JMSDiExtraBundle/issues/186#issuecomment-151676917","issue_url":"https://api.github.com/repos/schmittjoh/JMSDiExtraBundle/issues/186","id":151676917,"user":{"login":"justintaft01","id":12241480,"avatar_url":"https://avatars.githubusercontent.com/u/12241480?v=3","gravatar_id":"","url":"https://api.github.com/users/justintaft01","html_url":"https://github.com/justintaft01","followers_url":"https://api.github.com/users/justintaft01/followers","following_url":"https://api.github.com/users/justintaft01/following{/other_user}","gists_url":"https://api.github.com/users/justintaft01/gists{/gist_id}","starred_url":"https://api.github.com/users/justintaft01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintaft01/subscriptions","organizations_url":"https://api.github.com/users/justintaft01/orgs","repos_url":"https://api.github.com/users/justintaft01/repos","events_url":"https://api.github.com/users/justintaft01/events{/privacy}","received_events_url":"https://api.github.com/users/justintaft01/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T23:45:40Z","updated_at":"2015-10-27T23:45:40Z","body":":+1: "}}