Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
/**
4
 * @see       https://github.com/laminas/laminas-mvc-skeleton for the canonical source repository
5
 * @copyright https://github.com/laminas/laminas-mvc-skeleton/blob/master/COPYRIGHT.md
6
 * @license   https://github.com/laminas/laminas-mvc-skeleton/blob/master/LICENSE.md New BSD License
7
 */
8
 
9
declare(strict_types=1);
10
 
11
namespace Application;
12
 
16770 efrain 13
 
1 www 14
use Laminas\Router\Http\Literal;
15
use Laminas\Router\Http\Segment;
16
use Laminas\ServiceManager\Factory\InvokableFactory;
17
 
18
return [
19
    'router' => [
20
        'routes' => [
21
            'home' => [
22
                'type'    => Literal::class,
23
                'options' => [
24
                    'route'    => '/',
25
                    'defaults' => [
26
                        'controller' => Controller\IndexController::class,
27
                        'action'     => 'index',
28
                    ],
29
                ],
30
            ],
31
            'application' => [
32
                'type'    => Segment::class,
33
                'options' => [
34
                    'route'    => '/application[/:action]',
35
                    'defaults' => [
36
                        'controller' => Controller\IndexController::class,
37
                        'action'     => 'index',
38
                    ],
39
                ],
40
            ],
41
        ],
42
    ],
43
    'controllers' => [
44
        'factories' => [
45
            Controller\IndexController::class => InvokableFactory::class,
46
        ],
47
    ],
48
    'view_manager' => [
49
        'display_not_found_reason' => true,
50
        'display_exceptions'       => true,
51
        'doctype'                  => 'HTML5',
52
        'not_found_template'       => 'error/404',
53
        'exception_template'       => 'error/index',
54
        'template_map' => [
55
            'layout/layout'           => __DIR__ . '/../view/layout/layout.phtml',
56
            'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
57
            'error/404'               => __DIR__ . '/../view/error/404.phtml',
58
            'error/index'             => __DIR__ . '/../view/error/index.phtml',
59
        ],
60
        'template_path_stack' => [
61
            __DIR__ . '/../view',
62
        ],
63
    ],
64
];