{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zend-mvc/issues/87","repository_url":"https://api.github.com/repos/zendframework/zend-mvc","labels_url":"https://api.github.com/repos/zendframework/zend-mvc/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-mvc/issues/87/comments","events_url":"https://api.github.com/repos/zendframework/zend-mvc/issues/87/events","html_url":"https://github.com/zendframework/zend-mvc/issues/87","id":137780365,"number":87,"title":"Deprecation warning","user":{"login":"metanav","id":7456984,"avatar_url":"https://avatars.githubusercontent.com/u/7456984?v=3","gravatar_id":"","url":"https://api.github.com/users/metanav","html_url":"https://github.com/metanav","followers_url":"https://api.github.com/users/metanav/followers","following_url":"https://api.github.com/users/metanav/following{/other_user}","gists_url":"https://api.github.com/users/metanav/gists{/gist_id}","starred_url":"https://api.github.com/users/metanav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metanav/subscriptions","organizations_url":"https://api.github.com/users/metanav/orgs","repos_url":"https://api.github.com/users/metanav/repos","events_url":"https://api.github.com/users/metanav/events{/privacy}","received_events_url":"https://api.github.com/users/metanav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zendframework/zend-mvc/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/zendframework/zend-mvc/labels/EasyFix","name":"EasyFix","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-03-02T05:48:42Z","updated_at":"2016-03-02T09:13:10Z","closed_at":null,"body":"I am getting following warning after upgrading zend-mvc:\r\n_ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceLocatorAwareInitializer. Please update your class My\\Controller\\MyController to remove the implementation, and start injecting your dependencies via factory instead._\r\n\r\nI have read the CHANGELOG and I understand why this warning is coming. But none of the controller classes is implementing ServiceLocatorAwareInterface in my application. I think due to extending AbstractController class which has setServiceLocator() method I am getting this warning. I know if I need I can inject it through factory. I would prefer to see this warning only if any classes is implementing ServiceLocatorAwareInterface, not for merely defining a method setServiceLocator() which can be there even if we inject it using setters in factory instead of constructor injection."},"comment":{"url":"https://api.github.com/repos/zendframework/zend-mvc/issues/comments/191144866","html_url":"https://github.com/zendframework/zend-mvc/issues/87#issuecomment-191144866","issue_url":"https://api.github.com/repos/zendframework/zend-mvc/issues/87","id":191144866,"user":{"login":"metanav","id":7456984,"avatar_url":"https://avatars.githubusercontent.com/u/7456984?v=3","gravatar_id":"","url":"https://api.github.com/users/metanav","html_url":"https://github.com/metanav","followers_url":"https://api.github.com/users/metanav/followers","following_url":"https://api.github.com/users/metanav/following{/other_user}","gists_url":"https://api.github.com/users/metanav/gists{/gist_id}","starred_url":"https://api.github.com/users/metanav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metanav/subscriptions","organizations_url":"https://api.github.com/users/metanav/orgs","repos_url":"https://api.github.com/users/metanav/repos","events_url":"https://api.github.com/users/metanav/events{/privacy}","received_events_url":"https://api.github.com/users/metanav/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T09:13:10Z","updated_at":"2016-03-02T09:13:10Z","body":"@froschdesign I understand what you mean and I don't have any issue with E_USER_DEPRECATED or any such kind of error reporting messages, they are really helpful. But they are useful only when they are meaningful and in appropriate places. The first case when a developer implement 'ServiceLocatorAwareInterface' it MUST be  triggered but not for the  other case when only setServiceLocator is defined in the class or any parent class."}}