src/Utility/ModuleControllerLoader.php
protected function loadErrorModule() : void
    {
        $fqn = $this->getFullyQualifiedClass('index', 'index');
        $the_module = new $fqn();
        $action = $this->getActionMethodName((string)$this->response->getStatusCode());
        if (method_exists($fqn, $action)) {
            call_user_func_array(array($the_module, $action), [$this->response->getVariables()]);
        } else {
            // There is no error handler for this error, show the index but don't pass variables
            call_user_func_array(array($the_module, $this->getActionMethodName('index')), []);
        }
    }
protected function loadErrorModule() : void
    {
        $fqn = $this->getFullyQualifiedClass('index', 'index');
        $the_module = new $fqn();
        $action = $this->getActionMethodName((string)$this->response->getStatusCode());
        if (method_exists($fqn, $action)) {
            call_user_func_array(array($the_module, $action), [$this->response->getVariables()]);
        } else {
            // There is no error handler for this error, show the index but don't pass variables
            call_user_func_array(array($the_module, $this->getActionMethodName('index')), []);
        }
    }
protected function loadErrorModule ( ) : void { $ fqn = $ this -> getFullyQualifiedClass ( 'index' , 'index' ) ; $ the_module = new $ fqn ( ) ; $ action = $ this -> getActionMethodName ( ( string ) $ this -> response -> getStatusCode ( ) ) ; if ( method_exists ( $ fqn , $ action ) ) { call_user_func_array ( array ( $ the_module , $ action ) , [ $ this -> response -> getVariables ( ) ] ) ; } else { // There is no error handler for this error, show the index but don't pass variables call_user_func_array ( array ( $ the_module , $ this -> getActionMethodName ( 'index' ) ) , [ ] ) ; } }
Load an error module based on the error code.
Load an error module based on the error code .