module.config.php 1.16 KB
Newer Older
Bertrand Gauthier's avatar
Bertrand Gauthier committed
1
2
<?php

Bertrand Gauthier's avatar
Bertrand Gauthier committed
3
namespace UnicaenOauth;
Bertrand Gauthier's avatar
Bertrand Gauthier committed
4

5
return [
6
7
8
9
10
11
12
    'bjyauthorize' => [
        'guards' => [
            'BjyAuthorize\Guard\Controller' => [
                ['controller' => 'ZF\OAuth2\Controller\Auth', 'roles' => []],
            ],
        ],
    ],
13
14
15
    'router' => [
        'routes' => [
            'login-cas' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
16
                'type' => 'Literal',
17
                'options' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
18
                    'route'    => '/cas/login',
19
                    'defaults' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
20
21
                        'controller' => __NAMESPACE__ . '\Controller\Cas',
                        'action'     => 'login',
22
23
24
25
26
27
28
                    ],
                ],
            ],
        ],
    ],
    'controllers' => [
        'factories' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
29
            __NAMESPACE__ . '\Controller\Cas' => __NAMESPACE__ . '\Controller\CasControllerFactory',
30
31
32
33
        ],
    ],
    'service_manager' => [
        'factories' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
34
35
            'service.cas' => __NAMESPACE__ . '\Cas\CasServiceFactory',
            'ZF\OAuth2\Adapter\PdoAdapter' => __NAMESPACE__ . '\OAuth2\Adapter\StorageAdapterFactory',
36
37
38
39
        ]
    ],
    'view_manager' => [
        'template_path_stack' => [
Bertrand Gauthier's avatar
Bertrand Gauthier committed
40
            __DIR__ . '/../view',
41
42
43
        ],
    ],
];