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) { } }