Skip to content

Commit 3c47cde

Browse files
committed
bugfix
1 parent 5b55808 commit 3c47cde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Service/Factory/AuthenticationServiceFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
use Interop\Container\ContainerInterface;
55
use Zend\Authentication\AuthenticationService;
66
use Zend\ServiceManager\Factory\FactoryInterface;
7-
use Zend\Authentication\Storage\Session as SessionStorage;
87
use ProspectOne\UserModule\Service\AuthAdapter;
8+
use Zend\Session\Storage\StorageInterface;
99

1010
/**
1111
* The factory responsible for creating of authentication service.
@@ -23,8 +23,8 @@ class AuthenticationServiceFactory implements FactoryInterface
2323
*/
2424
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
2525
{
26-
/** @var SessionStorage $authStorage */
27-
$authStorage = $container->get(SessionStorage::class);
26+
/** @var StorageInterface $authStorage */
27+
$authStorage = $container->get("ProspectOne\UserModule\SessionStorage");
2828
/** @var AuthAdapter $authAdapter */
2929
$authAdapter = $container->get(AuthAdapter::class);
3030

0 commit comments

Comments
 (0)