PreferencesModuleServiceProvider
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 7
Bugs 0 Features 0
Metric Value
wmc 0
c 7
b 0
f 0
lcom 0
cbo 0
dl 0
loc 52
1
<?php namespace Anomaly\PreferencesModule;
2
3
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
4
5
/**
6
 * Class PreferencesModuleServiceProvider
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class PreferencesModuleServiceProvider extends AddonServiceProvider
13
{
14
15
    /**
16
     * The addon plugins.
17
     *
18
     * @var array
19
     */
20
    protected $plugins = [
21
        'Anomaly\PreferencesModule\PreferencesModulePlugin',
22
    ];
23
24
    /**
25
     * The addon listeners.
26
     *
27
     * @var array
28
     */
29
    protected $listeners = [
30
        'Anomaly\Streams\Platform\Event\Response' => [
31
            'Anomaly\PreferencesModule\Preference\Listener\ConfigureSystem',
32
        ],
33
    ];
34
35
    /**
36
     * The addon routes.
37
     *
38
     * @var array
39
     */
40
    protected $routes = [
41
        'admin/preferences'                => 'Anomaly\PreferencesModule\Http\Controller\Admin\[email protected]',
42
        'admin/preferences/{type}'         => 'Anomaly\PreferencesModule\Http\Controller\Admin\[email protected]',
43
        'admin/preferences/{type}/{addon}' => 'Anomaly\PreferencesModule\Http\Controller\Admin\[email protected]',
44
    ];
45
46
    /**
47
     * The class bindings.
48
     *
49
     * @var array
50
     */
51
    protected $bindings = [
52
        'Anomaly\Streams\Platform\Model\Preferences\PreferencesPreferencesEntryModel' => 'Anomaly\PreferencesModule\Preference\PreferenceModel',
53
    ];
54
55
    /**
56
     * The singleton bindings.
57
     *
58
     * @var array
59
     */
60
    protected $singletons = [
61
        'Anomaly\PreferencesModule\Preference\Contract\PreferenceRepositoryInterface' => 'Anomaly\PreferencesModule\Preference\PreferenceRepository',
62
    ];
63
}
64