Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 966894c

Browse files
gszyweierophinney
authored andcommitted
Try to use AuthenticationServiceInterface for the Identity helper
See zendframework/zend-mvc-plugin-identity#9 Closes #33
1 parent 55f753c commit 966894c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Helper/Service/IdentityFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function __invoke(ContainerInterface $container, $name, array $options =
3333
$helper = new Identity();
3434
if ($container->has('Zend\Authentication\AuthenticationService')) {
3535
$helper->setAuthenticationService($container->get('Zend\Authentication\AuthenticationService'));
36+
} elseif ($container->has('Zend\Authentication\AuthenticationServiceInterface')) {
37+
$helper->setAuthenticationService($container->get('Zend\Authentication\AuthenticationServiceInterface'));
3638
}
3739
return $helper;
3840
}

0 commit comments

Comments
 (0)