* Dependency container */ $container = new Container($dependency); /** * Shutdown register */ register_shutdown_function(array('ToucaNine\\Exception\\ErrorException', 'handleShutdown')); /** * Error handler */ set_error_handler(array('ToucaNine\\Exception\\ErrorException', 'handleError'), E_ALL ^ E_DEPRECATED ^ E_NOTICE | E_STRICT); /** * Exception handler */ set_exception_handler(array('ToucaNine\\Exception\\ErrorException', 'handleException')); /** * Dependency setter */ Exception\ErrorException::setHttp($container->get('ToucaNine\\Http\\Http')); Exception\ErrorException::setView($container->get('ToucaNine\\View\\View')); /** * Application configuration */ include APP_PATH . DS . 'Config' . EXT; /** * Application execution */ $app = $container->get('ToucaNine\\Application\\Application'); /** * END ToucaNine/Bootstrapper.php */