@@ -2,12 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace JwPersistentUser; |
4 | 4 | |
5 | -use JwPersistentUser\Listener\WriteTokenToCookie, |
|
6 | - JwPersistentUser\Service\CookieAuthenticationService; |
|
7 | - |
|
8 | -use Zend\ModuleManager\Feature, |
|
9 | - Zend\EventManager\EventManager, |
|
10 | - Zend\EventManager\EventInterface; |
|
5 | +use JwPersistentUser\Service\CookieAuthenticationService; |
|
6 | +use Zend\ModuleManager\Feature; |
|
7 | +use Zend\EventManager\EventManager; |
|
8 | +use Zend\EventManager\EventInterface; |
|
11 | 9 | use Zend\ServiceManager\ServiceManager; |
12 | 10 | |
13 | 11 | class Module implements |
@@ -3,23 +3,16 @@ |
||
3 | 3 | namespace JwPersistentUser\Listener; |
4 | 4 | |
5 | 5 | use Interop\Container\ContainerInterface; |
6 | -use Interop\Container\Exception\ContainerException; |
|
7 | 6 | use JwPersistentUser\Service\CookieService; |
8 | 7 | use JwPersistentUser\Service\RememberMeService; |
9 | - |
|
10 | 8 | use Zend\EventManager\Event; |
11 | 9 | use Zend\Http\Request; |
12 | 10 | use Zend\Http\Response; |
13 | -use Zend\ServiceManager\Exception\ServiceNotCreatedException; |
|
14 | -use Zend\ServiceManager\Exception\ServiceNotFoundException; |
|
15 | 11 | use Zend\ServiceManager\Factory\DelegatorFactoryInterface; |
16 | -use Zend\ServiceManager\ServiceLocatorInterface; |
|
17 | 12 | use Zend\Stdlib\RequestInterface; |
18 | 13 | use Zend\Stdlib\ResponseInterface; |
19 | 14 | use Zend\EventManager\SharedEventManagerInterface; |
20 | - |
|
21 | 15 | use ZfcUser\Authentication\Adapter\AdapterChain; |
22 | -use ZfcUser\Authentication\Adapter\AdapterChainEvent; |
|
23 | 16 | |
24 | 17 | class WriteTokenToCookie implements DelegatorFactoryInterface |
25 | 18 | { |
@@ -7,11 +7,9 @@ |
||
7 | 7 | use JwPersistentUser\Service\CookieService; |
8 | 8 | use JwPersistentUser\Service\RememberMeService; |
9 | 9 | use JwPersistentUser\Listener\WriteTokenToCookie; |
10 | - |
|
11 | 10 | use Zend\EventManager\Event; |
12 | 11 | use Zend\Http\Request; |
13 | 12 | use Zend\Http\Response; |
14 | - |
|
15 | 13 | use ZfcUser\Authentication\Adapter\AdapterChainEvent; |
16 | 14 | |
17 | 15 | class WriteToCookieTest extends TestCase |