36 lines
806 B
PHP
36 lines
806 B
PHP
<?php
|
|
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
|
|
|
namespace Icinga\Application;
|
|
|
|
require_once dirname(__FILE__) . '/ApplicationBootstrap.php';
|
|
|
|
/**
|
|
* Use this if you want to make use of Icinga functionality in other web projects
|
|
*
|
|
* Usage example:
|
|
* <code>
|
|
* use Icinga\Application\EmbeddedWeb;
|
|
* EmbeddedWeb::start();
|
|
* </code>
|
|
*/
|
|
class EmbeddedWeb extends ApplicationBootstrap
|
|
{
|
|
/**
|
|
* Embedded bootstrap parts
|
|
*
|
|
* @see ApplicationBootstrap::bootstrap
|
|
* @return $this
|
|
*/
|
|
protected function bootstrap()
|
|
{
|
|
return $this
|
|
->setupZendAutoloader()
|
|
->loadConfig()
|
|
->setupErrorHandling()
|
|
->setupTimezone()
|
|
->setupModuleManager()
|
|
->loadEnabledModules();
|
|
}
|
|
}
|