You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
I have a few problems with an identity view helper factory.
public function createService(ServiceLocatorInterface $serviceLocator)
{
$services = $serviceLocator->getServiceLocator();
$helper = new Identity();
if ($services->has('Zend\Authentication\AuthenticationService')) {
$helper->setAuthenticationService($services->get('Zend\Authentication\AuthenticationService'));
}
return $helper;
}
First about a retrieving of auth service. Maybe will be better to use Zend\Authentication\AuthenticationServiceInterface instead of Zend\Authentication\AuthenticationService as name of the auth service?
By default HelperPluginManager doesn't contain main service container, and var $services can be null. But it seems in develop branch this factory class already modified.
The text was updated successfully, but these errors were encountered:
First about a retrieving of auth service. Maybe will be better to use Zend\Authentication\AuthenticationServiceInterface instead of Zend\Authentication\AuthenticationService as name of the auth service?
I have a few problems with an identity view helper factory.
The text was updated successfully, but these errors were encountered: