public function registerExceptionHandler(string $projectPath)
    {
        if (null === $this->exceptionHandler) {
            return false;
        }

        $callback = $this->createCallback(
                $this->exceptionHandler['class'],
                $this->exceptionHandler['method'],
                $projectPath
        );
        set_exception_handler($callback);
        return $callback[0];
    }
public function registerExceptionHandler(string $projectPath)
    {
        if (null === $this->exceptionHandler) {
            return false;
        }

        $callback = $this->createCallback(
                $this->exceptionHandler['class'],
                $this->exceptionHandler['method'],
                $projectPath
        );
        set_exception_handler($callback);
        return $callback[0];
    }
public function registerExceptionHandler ( string $ projectPath ) { if ( null === $ this -> exceptionHandler ) { return false ; } $ callback = $ this -> createCallback ( $ this -> exceptionHandler [ 'class' ] , $ this -> exceptionHandler [ 'method' ] , $ projectPath ) ; set_exception_handler ( $ callback ) ; return $ callback [ 0 ] ; }
registers exception handler for current mode

Return value depends on registration: if no exception handler set return
value will be false, if registered handler was an instance the handler
instance will be returned, and true in any other case.

@param   string       $projectPath  path to project
@return  bool|object
registers exception handler for current mode