Ouzo\Bootstrap::runApplication PHP Method

runApplication() public method

public runApplication ( ) : void
return void
    public function runApplication()
    {
        if ($this->configRepository) {
            $this->configRepository->reload();
        }
        $this->registerErrorHandlers();
        $this->includeRoutes();
        $this->createFrontController()->init();
    }

Usage Example

Example #1
0
<?php

use Ouzo\Bootstrap;
require 'vendor/autoload.php';
define('ROOT_PATH', realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR);
$bootstrap = new Bootstrap();
$bootstrap->runApplication();