public function setup() {
		$this->errorHandler = $errorHandler = \Asgard\Debug\ErrorHandler::register();
		if(php_sapi_name() !== 'cli')
			\Asgard\Debug\Debug::setFormat('html');

		register_shutdown_function([$this, 'shutdownFunction']);
		$this->addShutdownCallback([$errorHandler, 'shutdownFunction']);

		$compiledFile = $this->getCompiledFile();
		if($compiledFile && file_exists($compiledFile))
			include_once $compiledFile;

		return $this;
	}
public function setup() {
		$this->errorHandler = $errorHandler = \Asgard\Debug\ErrorHandler::register();
		if(php_sapi_name() !== 'cli')
			\Asgard\Debug\Debug::setFormat('html');

		register_shutdown_function([$this, 'shutdownFunction']);
		$this->addShutdownCallback([$errorHandler, 'shutdownFunction']);

		$compiledFile = $this->getCompiledFile();
		if($compiledFile && file_exists($compiledFile))
			include_once $compiledFile;

		return $this;
	}
public function setup ( ) { $ this -> errorHandler = $ errorHandler = \ Asgard \ Debug \ ErrorHandler :: register ( ) ; if ( php_sapi_name ( ) !== 'cli' ) \ Asgard \ Debug \ Debug :: setFormat ( 'html' ) ; register_shutdown_function ( [ $ this , 'shutdownFunction' ] ) ; $ this -> addShutdownCallback ( [ $ errorHandler , 'shutdownFunction' ] ) ; $ compiledFile = $ this -> getCompiledFile ( ) ; if ( $ compiledFile && file_exists ( $ compiledFile ) ) include_once $ compiledFile ; return $ this ; }
Setup errorhandler, shutdown and load compiled classes.
Setup errorhandler shutdown and load compiled classes .