This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathModule.php
85 lines (72 loc) · 3.25 KB
/
Module.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
namespace LmcUser;
use Laminas\ModuleManager\Feature\ConfigProviderInterface;
use Laminas\ModuleManager\Feature\ControllerPluginProviderInterface;
use Laminas\ModuleManager\Feature\ControllerProviderInterface;
use Laminas\ModuleManager\Feature\ServiceProviderInterface;
class Module implements
ControllerProviderInterface,
ControllerPluginProviderInterface,
ConfigProviderInterface,
ServiceProviderInterface
{
public function getConfig($env = null)
{
return include __DIR__ . '/config/module.config.php';
}
public function getControllerPluginConfig()
{
return array(
'factories' => array(
'lmcUserAuthentication' => \LmcUser\Factory\Controller\Plugin\LmcUserAuthentication::class,
),
);
}
public function getControllerConfig()
{
return array(
'factories' => array(
'lmcuser' => \LmcUser\Factory\Controller\UserControllerFactory::class,
),
);
}
public function getViewHelperConfig()
{
return array(
'factories' => array(
'lmcUserDisplayName' => \LmcUser\Factory\View\Helper\LmcUserDisplayName::class,
'lmcUserIdentity' => \LmcUser\Factory\View\Helper\LmcUserIdentity::class,
'lmcUserLoginWidget' => \LmcUser\Factory\View\Helper\LmcUserLoginWidget::class,
),
);
}
public function getServiceConfig()
{
return array(
'aliases' => array(
'lmcuser_laminas_db_adapter' => \Laminas\Db\Adapter\Adapter::class,
),
'invokables' => array(
'lmcuser_register_form_hydrator' => \Laminas\Hydrator\ClassMethodsHydrator::class,
),
'factories' => array(
'lmcuser_redirect_callback' => \LmcUser\Factory\Controller\RedirectCallbackFactory::class,
'lmcuser_module_options' => \LmcUser\Factory\Options\ModuleOptions::class,
'LmcUser\Authentication\Adapter\AdapterChain' => \LmcUser\Authentication\Adapter\AdapterChainServiceFactory::class,
// We alias this one because it's LmcUser's instance of
// Laminas\Authentication\AuthenticationService. We don't want to
// hog the FQCN service alias for a Laminas\* class.
'lmcuser_auth_service' => \LmcUser\Factory\AuthenticationService::class,
'lmcuser_user_hydrator' => \LmcUser\Factory\UserHydrator::class,
'lmcuser_user_mapper' => \LmcUser\Factory\Mapper\User::class,
'lmcuser_login_form' => \LmcUser\Factory\Form\Login::class,
'lmcuser_register_form' => \LmcUser\Factory\Form\Register::class,
'lmcuser_change_password_form' => \LmcUser\Factory\Form\ChangePassword::class,
'lmcuser_change_email_form' => \LmcUser\Factory\Form\ChangeEmail::class,
'LmcUser\Authentication\Adapter\Db' => \LmcUser\Factory\Authentication\Adapter\DbFactory::class,
'LmcUser\Authentication\Storage\Db' => \LmcUser\Factory\Authentication\Storage\DbFactory::class,
'lmcuser_user_service' => \LmcUser\Factory\Service\UserFactory::class,
),
);
}
}