{"action":"closed","issue":{"url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/138","repository_url":"https://api.github.com/repos/zendframework/zend-servicemanager","labels_url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/138/comments","events_url":"https://api.github.com/repos/zendframework/zend-servicemanager/issues/138/events","html_url":"https://github.com/zendframework/zend-servicemanager/issues/138","id":165950357,"number":138,"title":"ServiceManager Initializers seems not to work on Controller","user":{"login":"bricks81","id":2753892,"avatar_url":"https://avatars.githubusercontent.com/u/2753892?v=3","gravatar_id":"","url":"https://api.github.com/users/bricks81","html_url":"https://github.com/bricks81","followers_url":"https://api.github.com/users/bricks81/followers","following_url":"https://api.github.com/users/bricks81/following{/other_user}","gists_url":"https://api.github.com/users/bricks81/gists{/gist_id}","starred_url":"https://api.github.com/users/bricks81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricks81/subscriptions","organizations_url":"https://api.github.com/users/bricks81/orgs","repos_url":"https://api.github.com/users/bricks81/repos","events_url":"https://api.github.com/users/bricks81/events{/privacy}","received_events_url":"https://api.github.com/users/bricks81/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-16T22:26:25Z","updated_at":"2016-09-01T19:52:34Z","closed_at":"2016-09-01T19:52:34Z","body":"ZF3 zend-servicemanager v3.1.1\r\nI've tried to add an Initializer which will not be called for the controller:\r\n\r\nZend\\ServiceManager\\ServiceManager on Line: 761 (doCreate)\r\n\r\n```php\r\nforeach ($this->initializers as $initializer) {\r\n\r\n    if(!is_array($object)){\r\n    \tif('Application\\Controller\\IndexController' == get_class($object)){\r\n    \t\tdie(var_dump(get_class($initializer)));\r\n    \t}        \t\t\r\n    }\r\n    $initializer($this->creationContext, $object);\r\n}\r\n```\r\n\r\nReturns:\r\n\r\n```text\r\nWarning: get_class() expects parameter 1 to be object, array given in vendor\\zendframework\\zend-servicemanager\\src\\ServiceManager.php on line 764\r\nbool(false) \r\n```"}}
{"actor":{"display_login":"weierophinney"}}