1 | <?php |
||
18 | class Dev extends Module |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @param Config $config |
||
23 | */ |
||
24 | public function __construct(Config $config) |
||
28 | |||
29 | /** |
||
30 | * Implements hook "module.install.before" |
||
31 | * @param null|string $result |
||
32 | */ |
||
33 | public function hookModuleInstallBefore(&$result) |
||
39 | |||
40 | /** |
||
41 | * Implements hook "construct" |
||
42 | */ |
||
43 | public function hookConstruct() |
||
47 | |||
48 | /** |
||
49 | * Implements hook "construct.controller" |
||
50 | * @param \gplcart\core\Controller $controller |
||
51 | */ |
||
52 | public function hookConstructController($controller) |
||
56 | |||
57 | /** |
||
58 | * Implements hook "template.output" |
||
59 | * @param string $html |
||
60 | * @param \gplcart\core\Controller $controller |
||
61 | */ |
||
62 | public function hookTemplateOutput(&$html, $controller) |
||
66 | |||
67 | /** |
||
68 | * Implements hook "library.list" |
||
69 | * @param array $libraries |
||
70 | */ |
||
71 | public function hookLibraryList(array &$libraries) |
||
86 | |||
87 | /** |
||
88 | * Implements hook "route.list" |
||
89 | * @param array $routes |
||
90 | */ |
||
91 | public function hookRouteList(array &$routes) |
||
100 | |||
101 | /** |
||
102 | * Implements hook "module.enable.after" |
||
103 | */ |
||
104 | public function hookModuleEnableAfter() |
||
108 | |||
109 | /** |
||
110 | * Implements hook "module.disable.after" |
||
111 | */ |
||
112 | public function hookModuleDisableAfter() |
||
116 | |||
117 | /** |
||
118 | * Implements hook "module.install.after" |
||
119 | */ |
||
120 | public function hookModuleInstallAfter() |
||
124 | |||
125 | /** |
||
126 | * Implements hook "module.uninstall.after" |
||
127 | */ |
||
128 | public function hookModuleUninstallAfter() |
||
132 | |||
133 | /** |
||
134 | * Returns a path to Kint's init file |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getKintFile() |
||
141 | |||
142 | /** |
||
143 | * Sets module specific assets |
||
144 | * @param \gplcart\core\Controller $controller |
||
145 | */ |
||
146 | protected function setModuleAssets($controller) |
||
157 | |||
158 | /** |
||
159 | * Adds toolbar |
||
160 | * @param string $html |
||
161 | * @param \gplcart\core\Controller $controller |
||
162 | */ |
||
163 | protected function setDevToolbar(&$html, $controller) |
||
180 | |||
181 | } |
||
182 |