Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jul 19, 2023
1 parent 8e43569 commit 9091615
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion library/Icinga/Application/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require_once __DIR__ . '/EmbeddedWeb.php';

use ErrorException;
use Icinga\Application\ProvidedHook\Migrator;
use ipl\I18n\GettextTranslator;
use ipl\I18n\Locale;
use ipl\I18n\StaticTranslator;
Expand Down Expand Up @@ -101,7 +102,8 @@ protected function bootstrap()
->setupUser()
->setupTimezone()
->setupInternationalization()
->setupFatalErrorHandling();
->setupFatalErrorHandling()
->registerApplicationHooks();
}

/**
Expand Down Expand Up @@ -131,6 +133,18 @@ public function getThemes()
return array_combine($themes, $themes);
}

/**
* Register all hooks provided by the main application
*
* @return $this
*/
protected function registerApplicationHooks()
{
Hook::register('migration', Migrator::class, Migrator::class);

return $this;
}

/**
* Prepare routing
*
Expand Down

0 comments on commit 9091615

Please sign in to comment.