1 | <?php |
||
18 | class Main |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Module class instance |
||
23 | * @var \gplcart\core\Module $module |
||
24 | */ |
||
25 | protected $module; |
||
26 | |||
27 | /** |
||
28 | * Library class instance |
||
29 | * @var \gplcart\core\Library $library |
||
30 | */ |
||
31 | protected $library; |
||
32 | |||
33 | /** |
||
34 | * @param Module $module |
||
35 | * @param Library $library |
||
36 | */ |
||
37 | public function __construct(Module $module, Library $library) |
||
42 | |||
43 | /** |
||
44 | * Implements hook "library.list" |
||
45 | * @param array $libraries |
||
46 | */ |
||
47 | public function hookLibraryList(array &$libraries) |
||
65 | |||
66 | /** |
||
67 | * Implements hook "route.list" |
||
68 | * @param array $routes |
||
69 | */ |
||
70 | public function hookRouteList(array &$routes) |
||
79 | |||
80 | /** |
||
81 | * Implements hook "module.enable.after" |
||
82 | */ |
||
83 | public function hookModuleEnableAfter() |
||
87 | |||
88 | /** |
||
89 | * Implements hook "module.disable.after" |
||
90 | */ |
||
91 | public function hookModuleDisableAfter() |
||
95 | |||
96 | /** |
||
97 | * Implements hook "module.install.after" |
||
98 | */ |
||
99 | public function hookModuleInstallAfter() |
||
103 | |||
104 | /** |
||
105 | * Implements hook "module.uninstall.after" |
||
106 | */ |
||
107 | public function hookModuleUninstallAfter() |
||
111 | |||
112 | /** |
||
113 | * Add CodeMirror library and extra files |
||
114 | * @param \gplcart\core\Controller $controller |
||
115 | */ |
||
116 | public function addLibrary($controller) |
||
128 | |||
129 | } |
||
130 |