Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16 from unreal4u/master
Browse files Browse the repository at this point in the history
Make some aliases and use classes as identifiers
  • Loading branch information
unreal4u authored Apr 10, 2020
2 parents e4ed3bf + 1ff9a6e commit 6105c30
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions config/module.config.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
<?php

use JwPersistentUser\Model\ModuleOptions;
use JwPersistentUser\Model\ModuleOptionsFactory;
use JwPersistentUser\Service\CookieService;
use JwPersistentUser\Service\CookieServiceFactory;
use JwPersistentUser\Service\RememberMeService;
use JwPersistentUser\Service\RememberMeServiceFactory;
use JwPersistentUser\Service\UserAlwaysValid;
use Zend\ServiceManager\Factory\InvokableFactory;

return [
'service_manager' => [
'factories' => [
'JwPersistentUser\ModuleOptions' => 'JwPersistentUser\Model\ModuleOptionsFactory',
'JwPersistentUser\Service\RememberMe' => 'JwPersistentUser\Service\RememberMeServiceFactory',
'JwPersistentUser\Service\Cookie' => 'JwPersistentUser\Service\CookieServiceFactory',
'JwPersistentUser\Service\UserAlwaysValid' => \Zend\ServiceManager\Factory\InvokableFactory::class,
ModuleOptions::class => ModuleOptionsFactory::class,
RememberMeService::class => RememberMeServiceFactory::class,
CookieService::class => CookieServiceFactory::class,
UserAlwaysValid::class => InvokableFactory::class,
],
'aliases' => [
'JwPersistentUser\UserValidity' => 'JwPersistentUser\Service\UserAlwaysValid',
'JwPersistentUser\UserValidity' => UserAlwaysValid::class,
'JwPersistentUser\Service\RememberMe' => RememberMeService::class,
'JwPersistentUser\ModuleOptions' => ModuleOptions::class,
'JwPersistentUser\Service\Cookie' => CookieService::class,
],
],
];

0 comments on commit 6105c30

Please sign in to comment.