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) |
||
62 | |||
63 | /** |
||
64 | * Implements hook "route.list" |
||
65 | * @param mixed $routes |
||
66 | */ |
||
67 | public function hookRouteList(&$routes) |
||
77 | |||
78 | /** |
||
79 | * Implements hook "user.role.permissions" |
||
80 | * @param array $permissions |
||
81 | */ |
||
82 | public function hookUserRolePermissions(array &$permissions) |
||
86 | |||
87 | /** |
||
88 | * Implements hook "module.enable.after" |
||
89 | */ |
||
90 | public function hookModuleEnableAfter() |
||
94 | |||
95 | /** |
||
96 | * Implements hook "module.disable.after" |
||
97 | */ |
||
98 | public function hookModuleDisableAfter() |
||
102 | |||
103 | /** |
||
104 | * Implements hook "module.install.after" |
||
105 | */ |
||
106 | public function hookModuleInstallAfter() |
||
110 | |||
111 | /** |
||
112 | * Implements hook "module.uninstall.after" |
||
113 | */ |
||
114 | public function hookModuleUninstallAfter() |
||
118 | |||
119 | } |
||
120 |