/
module.config.php
94 lines (92 loc) · 3.74 KB
/
module.config.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
86
87
88
89
90
91
92
93
94
<?php
return array(
'di' => array(
'instance' => array(
'alias' => array(
'edpgithub_zend_db_adapter' => 'Zend\Db\Adapter\Adapter',
'edpgithub' => 'EdpGithub\Controller\GithubController',
'edpgithub_user_mapper' => 'EdpGithub\Mapper\UserGithubZendDb',
'edpgithub_github_tg' => 'Zend\Db\TableGateway\TableGateway',
'github' => 'EdpGithub\Controller\GithubController',
),
'EdpGithub\Mapper\UserGithubZendDb' => array(
'parameters' => array(
'tableGateway' => 'edpgithub_github_tg',
),
),
'edpgithub_github_tg' => array(
'parameters' => array(
'tableName' => 'user_github',
'adapter' => 'edpgithub_zend_db_adapter',
),
),
'ZfcUser\Authentication\Adapter\AdapterChain' => array(
'parameters' => array(
'defaultAdapter' => 'EdpGithub\Authentication\Adapter\ZfcUserGithub',
),
),
'EdpGithub\Authentication\Adapter\ZfcUserGithub' => array(
'parameters' => array(
'mapper' => 'edpgithub_user_mapper',
'userService' => 'EdpGithub\ApiClient\Service\User',
'zfcUserMapper' => 'zfcuser_user_mapper',
),
),
'EdpGithub\ApiClient\Service\AbstractService' => array(
'parameters' => array(
'apiClient' => 'EdpGithub\ApiClient\ApiClient'
),
),
'github' => array(
'parameters' => array(
'emailForm' => 'EdpGithub\Form\EmailAddress',
'userMapper' => 'zfcuser_user_mapper', // @TODO use service layer
),
),
'EdpGithub\Form\EmailAddress' => array(
'parameters' => array(
'emailValidator' => 'zfcuser_uemail_validator',
),
),
'Zend\View\Resolver\TemplatePathStack' => array(
'parameters' => array(
'paths' => array(
'edpgithub' => __DIR__ . '/../view',
),
),
),
/**
* Routes
*/
'Zend\Mvc\Router\RouteStack' => array(
'parameters' => array(
'routes' => array(
'github' => array(
'priority' => 1000,
'type' => 'Literal',
'options' => array(
'route' => '/github',
'defaults' => array(
'controller' => 'github',
),
),
'may_terminate' => true,
'child_routes' => array(
'email' => array(
'type' => 'Literal',
'options' => array(
'route' => '/email',
'defaults' => array(
'controller' => 'github',
'action' => 'email',
),
),
),
),
),
),
),
),
),
),
);