{"action":"opened","issue":{"url":"https://api.github.com/repos/zendframework/zend-expressive/issues/354","repository_url":"https://api.github.com/repos/zendframework/zend-expressive","labels_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/354/comments","events_url":"https://api.github.com/repos/zendframework/zend-expressive/issues/354/events","html_url":"https://github.com/zendframework/zend-expressive/issues/354","id":159952431,"number":354,"title":"Problem with zend-servicemanager ^2.7.3 and Zend ViewHelper factory","user":{"login":"pdrosos","id":711055,"avatar_url":"https://avatars.githubusercontent.com/u/711055?v=3","gravatar_id":"","url":"https://api.github.com/users/pdrosos","html_url":"https://github.com/pdrosos","followers_url":"https://api.github.com/users/pdrosos/followers","following_url":"https://api.github.com/users/pdrosos/following{/other_user}","gists_url":"https://api.github.com/users/pdrosos/gists{/gist_id}","starred_url":"https://api.github.com/users/pdrosos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdrosos/subscriptions","organizations_url":"https://api.github.com/users/pdrosos/orgs","repos_url":"https://api.github.com/users/pdrosos/repos","events_url":"https://api.github.com/users/pdrosos/events{/privacy}","received_events_url":"https://api.github.com/users/pdrosos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-13T13:39:19Z","updated_at":"2016-06-13T13:39:19Z","closed_at":null,"body":"Hi,\r\n\r\nNot sure in which module is the problem, so will report it here.\r\n\r\nI am using Expressive with Zend View. When switching to zend-servicemanager ^2.7.3 (2.7.6 installed) to be able to install DoctrineORMModule, I have a problem in my custom ViewHelper factory:\r\n\r\n```\r\nuse Interop\\Container\\ContainerInterface;\r\n\r\nclass SlimFlashViewHelperFactory\r\n{\r\n    public function __invoke(ContainerInterface $container)\r\n    {\r\n    }\r\n}\r\n```\r\n\r\nWith zend-servicemanager 2.7.6 the `$container ` parameter is of type `Zend\\View\\HelperPluginManager` and I am not able to fetch my services because of this error:\r\n```\r\nZend\\View\\HelperPluginManager can only create instances of Zend\\View\\Helper\\HelperInterface and/or callables; Slim\\Flash\\Messages is invalid\r\n```\r\n \r\nWith zend-servicemanager 3.1.0 the `$container` is `Zend\\ServiceManager\\ServiceManager` and everything works as expected."}}
{"actor":{"display_login":"pdrosos"}}