src/Application.php
public function shutdown()
    {
        if (!$this->is_shutdown)
        {
            $this->is_shutdown = true;

            // Unregister the autoloader
            if (!empty($this->autoloader))
                spl_autoload_unregister(array($this->autoloader, 'autoload'));

            // Unregister the error handler
            ErrorInterceptor::unregisterErrorHandler();

            // Unregister the exception handler
            restore_exception_handler();
        }
    }
public function shutdown()
    {
        if (!$this->is_shutdown)
        {
            $this->is_shutdown = true;

            // Unregister the autoloader
            if (!empty($this->autoloader))
                spl_autoload_unregister(array($this->autoloader, 'autoload'));

            // Unregister the error handler
            ErrorInterceptor::unregisterErrorHandler();

            // Unregister the exception handler
            restore_exception_handler();
        }
    }
public function shutdown ( ) { if ( ! $ this -> is_shutdown ) { $ this -> is_shutdown = true ; // Unregister the autoloader if ( ! empty ( $ this -> autoloader ) ) spl_autoload_unregister ( array ( $ this -> autoloader , 'autoload' ) ) ; // Unregister the error handler ErrorInterceptor :: unregisterErrorHandler ( ) ; // Unregister the exception handler restore_exception_handler ( ) ; } }
Terminate the application - unregister handlers and autoloaders. Does a
best effort to restore the global state.
Terminate the application - unregister handlers and autoloaders . Does a best effort to restore the global state .