| 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 |
|
|
|
13 |
use Laminas\Router\Http\Literal;
|
|
|
14 |
use Laminas\Router\Http\Segment;
|
|
|
15 |
use Laminas\ServiceManager\Factory\InvokableFactory;
|
|
|
16 |
|
|
|
17 |
return [
|
|
|
18 |
'router' => [
|
|
|
19 |
'routes' => [
|
|
|
20 |
'home' => [
|
|
|
21 |
'type' => Literal::class,
|
|
|
22 |
'options' => [
|
|
|
23 |
'route' => '/',
|
|
|
24 |
'defaults' => [
|
|
|
25 |
'controller' => Controller\IndexController::class,
|
|
|
26 |
'action' => 'index',
|
|
|
27 |
],
|
|
|
28 |
],
|
|
|
29 |
],
|
|
|
30 |
'application' => [
|
|
|
31 |
'type' => Segment::class,
|
|
|
32 |
'options' => [
|
|
|
33 |
'route' => '/application[/:action]',
|
|
|
34 |
'defaults' => [
|
|
|
35 |
'controller' => Controller\IndexController::class,
|
|
|
36 |
'action' => 'index',
|
|
|
37 |
],
|
|
|
38 |
],
|
|
|
39 |
],
|
|
|
40 |
],
|
|
|
41 |
],
|
|
|
42 |
'controllers' => [
|
|
|
43 |
'factories' => [
|
|
|
44 |
Controller\IndexController::class => InvokableFactory::class,
|
|
|
45 |
],
|
|
|
46 |
],
|
|
|
47 |
'view_manager' => [
|
|
|
48 |
'display_not_found_reason' => true,
|
|
|
49 |
'display_exceptions' => true,
|
|
|
50 |
'doctype' => 'HTML5',
|
|
|
51 |
'not_found_template' => 'error/404',
|
|
|
52 |
'exception_template' => 'error/index',
|
|
|
53 |
'template_map' => [
|
|
|
54 |
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
|
|
|
55 |
'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
|
|
|
56 |
'error/404' => __DIR__ . '/../view/error/404.phtml',
|
|
|
57 |
'error/index' => __DIR__ . '/../view/error/index.phtml',
|
|
|
58 |
],
|
|
|
59 |
'template_path_stack' => [
|
|
|
60 |
__DIR__ . '/../view',
|
|
|
61 |
],
|
|
|
62 |
],
|
|
|
63 |
];
|