1 | <?php |
||
17 | class Main |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Library class instance |
||
22 | * @var \gplcart\core\Library $library |
||
23 | */ |
||
24 | protected $library; |
||
25 | |||
26 | /** |
||
27 | * @param Library $library |
||
28 | */ |
||
29 | public function __construct(Library $library) |
||
33 | |||
34 | /** |
||
35 | * Implements hook "library.list" |
||
36 | * @param array $libraries |
||
37 | */ |
||
38 | public function hookLibraryList(array &$libraries) |
||
53 | |||
54 | /** |
||
55 | * Implements hook "module.enable.after" |
||
56 | */ |
||
57 | public function hookModuleEnableAfter() |
||
61 | |||
62 | /** |
||
63 | * Implements hook "module.disable.after" |
||
64 | */ |
||
65 | public function hookModuleDisableAfter() |
||
69 | |||
70 | /** |
||
71 | * Implements hook "module.install.after" |
||
72 | */ |
||
73 | public function hookModuleInstallAfter() |
||
77 | |||
78 | /** |
||
79 | * Implements hook "module.uninstall.after" |
||
80 | */ |
||
81 | public function hookModuleUninstallAfter() |
||
85 | |||
86 | /** |
||
87 | * Returns an array of gateways extracted from registered namespaces |
||
88 | * @return array |
||
89 | */ |
||
90 | public function getGatewayIds() |
||
109 | |||
110 | /** |
||
111 | * Returns an array of registered gateway instances |
||
112 | * @param null|string $gateway |
||
113 | * @return mixed |
||
114 | */ |
||
115 | public function getGatewayInstance($gateway = null) |
||
137 | |||
138 | /** |
||
139 | * Returns registered namespaces from composer's autoload file |
||
140 | * @return array |
||
141 | */ |
||
142 | protected function getGatewayNamespaces() |
||
153 | |||
154 | } |
||
155 |