* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Application; // @codingStandardsIgnoreStart require_once dirname(__FILE__) . '/ApplicationBootstrap.php'; // @codingStandardsIgnoreStop use Icinga\Exception\ProgrammingError; /** * Use this if you want to make use of Icinga funtionality in other web projects * * Usage example: * * use Icinga\Application\EmbeddedWeb; * EmbeddedWeb::start(); * */ class EmbeddedWeb extends ApplicationBootstrap { /** * Embedded bootstrap parts * * @see ApplicationBootstrap::bootstrap * @return self */ protected function bootstrap() { return $this->loadConfig() ->setupErrorHandling() ->setupTimezone() ->setupModuleManager() ->loadEnabledModules(); } }