| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace Tools;
- class Hooks
- {
- private $context;
- public function __construct($context)
- {
- $this->context = $context;
- }
- public function register($module, $hookName)
- {
- if (!\Tools\ModuleManager::isInstalling())
- throw new \Exception("You can only register hooks while installing");
- //TODO
- }
- public function trigger($hookName)
- {
- echo "Triggering hook `{$hookName}'";
- //TODO
- }
- public function loadHooks($hookEntities)
- {
- }
- }
|