Passed
Push — master ( c5289e...1946a0 )
by Peter
02:07
created
Labels
Severity
1
<?php
2
3
namespace AbterPhp\Website;
4
5
use AbterPhp\Framework\Constant\Event;
6
use AbterPhp\Framework\Constant\Module;
7
use AbterPhp\Framework\Constant\Priorities;
8
9
return [
10
    Module::IDENTIFIER         => 'AbterPhp\Website',
11
    Module::DEPENDENCIES       => ['AbterPhp\Admin'],
12
    Module::ENABLED            => true,
13
    Module::BOOTSTRAPPERS      => [
14
        Bootstrappers\Orm\OrmBootstrapper::class,
15
        Bootstrappers\Validation\ValidatorBootstrapper::class,
16
    ],
17
    Module::CLI_BOOTSTRAPPERS => [
18
        Bootstrappers\Database\MigrationsBootstrapper::class,
19
    ],
20
    Module::HTTP_BOOTSTRAPPERS => [
21
        Bootstrappers\Http\Controllers\Website\IndexBootstrapper::class,
22
        Bootstrappers\Http\Views\BuildersBootstrapper::class,
23
    ],
24
    Module::EVENTS             => [
25
        Event::TEMPLATE_ENGINE_READY => [
26
            /** @see \AbterPhp\Website\Events\Listeners\TemplateInitializer::handle */
27
            sprintf('%s@handle', Events\Listeners\TemplateInitializer::class),
28
        ],
29
        Event::NAVIGATION_READY      => [
30
            /** @see \AbterPhp\Website\Events\Listeners\NavigationBuilder::handle */
31
            sprintf('%s@handle', Events\Listeners\NavigationBuilder::class),
32
        ],
33
        Event::ENTITY_POST_CHANGE    => [
34
            /** @see \AbterPhp\Website\Events\Listeners\PageInvalidator::handle */
35
            sprintf('%s@handle', Events\Listeners\PageInvalidator::class),
36
        ],
37
        Event::DASHBOARD_READY       => [
38
            /** @see \AbterPhp\Website\Events\Listeners\DashboardBuilder::handle */
39
            sprintf('%s@handle', Events\Listeners\DashboardBuilder::class),
40
        ],
41
    ],
42
    Module::ROUTE_PATHS        => [
43
        Priorities::NORMAL       => [
44
            __DIR__ . '/admin-routes.php',
45
        ],
46
        Priorities::BELOW_NORMAL => [
47
            __DIR__ . '/website-routes.php',
48
        ],
49
    ],
50
    Module::MIGRATION_PATHS    => [
51
        Priorities::NORMAL => [
52
            realpath(__DIR__ . '/src/Databases/Migrations'),
53
        ],
54
    ],
55
    Module::RESOURCE_PATH      => realpath(__DIR__ . '/resources'),
0 ignored issues
show
The constant AbterPhp\Framework\Constant\Module::RESOURCE_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
56
];
57