{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zend-authentication/issues/17","repository_url":"https://api.github.com/repos/zendframework/zend-authentication","labels_url":"https://api.github.com/repos/zendframework/zend-authentication/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-authentication/issues/17/comments","events_url":"https://api.github.com/repos/zendframework/zend-authentication/issues/17/events","html_url":"https://github.com/zendframework/zend-authentication/issues/17","id":179038288,"number":17,"title":"ZF3 - Using Identity view helper requires that 'Zend\\Authentication\\AuthenticationService' be registered","user":{"login":"olegkrivtsov","id":4676023,"avatar_url":"https://avatars.githubusercontent.com/u/4676023?v=3","gravatar_id":"","url":"https://api.github.com/users/olegkrivtsov","html_url":"https://github.com/olegkrivtsov","followers_url":"https://api.github.com/users/olegkrivtsov/followers","following_url":"https://api.github.com/users/olegkrivtsov/following{/other_user}","gists_url":"https://api.github.com/users/olegkrivtsov/gists{/gist_id}","starred_url":"https://api.github.com/users/olegkrivtsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegkrivtsov/subscriptions","organizations_url":"https://api.github.com/users/olegkrivtsov/orgs","repos_url":"https://api.github.com/users/olegkrivtsov/repos","events_url":"https://api.github.com/users/olegkrivtsov/events{/privacy}","received_events_url":"https://api.github.com/users/olegkrivtsov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zendframework/zend-authentication/labels/awaiting%20author%20updates","name":"awaiting author updates","color":"e11d21"},{"url":"https://api.github.com/repos/zendframework/zend-authentication/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-24T16:23:10Z","updated_at":"2016-09-27T07:49:52Z","closed_at":null,"body":"When using `zend-authentication` with ZF3, it seems that `identity` view helper requires that you register `Zend\\Authentication\\AuthenticationService` (literally) in your config file:\r\n```\r\n'service_manager' => [\r\n        'factories' => [\r\n            'Zend\\Authentication\\AuthenticationService' => Service\\Factory\\AuthenticationServiceFactory::class,\r\n        ],\r\n    ],\r\n``` \r\n\r\nBut, I expect that I should register this service with the `::class` keyword, as follows:\r\n\r\n```\r\n'service_manager' => [\r\n        'factories' => [\r\n            Zend\\Authentication\\AuthenticationService::class => Service\\Factory\\AuthenticationServiceFactory::class,\r\n        ],\r\n    ],\r\n``` \r\n\r\nHowever, this doesn't work. Is this a bug?"},"comment":{"url":"https://api.github.com/repos/zendframework/zend-authentication/issues/comments/249791583","html_url":"https://github.com/zendframework/zend-authentication/issues/17#issuecomment-249791583","issue_url":"https://api.github.com/repos/zendframework/zend-authentication/issues/17","id":249791583,"user":{"login":"olegkrivtsov","id":4676023,"avatar_url":"https://avatars.githubusercontent.com/u/4676023?v=3","gravatar_id":"","url":"https://api.github.com/users/olegkrivtsov","html_url":"https://github.com/olegkrivtsov","followers_url":"https://api.github.com/users/olegkrivtsov/followers","following_url":"https://api.github.com/users/olegkrivtsov/following{/other_user}","gists_url":"https://api.github.com/users/olegkrivtsov/gists{/gist_id}","starred_url":"https://api.github.com/users/olegkrivtsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegkrivtsov/subscriptions","organizations_url":"https://api.github.com/users/olegkrivtsov/orgs","repos_url":"https://api.github.com/users/olegkrivtsov/repos","events_url":"https://api.github.com/users/olegkrivtsov/events{/privacy}","received_events_url":"https://api.github.com/users/olegkrivtsov/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T07:49:52Z","updated_at":"2016-09-27T07:49:52Z","body":"@weierophinney it works. Thanks. This can be closed."}}
{"actor":{"display_login":"olegkrivtsov"}}