init(); } /** * Initialize this hook * * Override this in your concrete implementation for any initialization at construction time. */ protected function init() { } /** * Get the module this hook belongs to * * @return Module */ final public function getModule(): Module { $moduleName = ClassLoader::extractModuleName(static::class); return Icinga::app()->getModuleManager() ->getModule($moduleName); } }