src/Yggdrasil/Core/Kernel.php
public function handle(Request $request)
    {
        $response = new Response();
        $response = $this->executePassiveActions($request, $response);
        $response = $this->executeAction($request, $response);

        if ($response->isClientError() || $response->isServerError()) {
            return $this->handleError($request, $response);
        }

        return $response;
    }
public function handle(Request $request)
    {
        $response = new Response();
        $response = $this->executePassiveActions($request, $response);
        $response = $this->executeAction($request, $response);

        if ($response->isClientError() || $response->isServerError()) {
            return $this->handleError($request, $response);
        }

        return $response;
    }
public function handle ( Request $ request ) { $ response = new Response ( ) ; $ response = $ this -> executePassiveActions ( $ request , $ response ) ; $ response = $ this -> executeAction ( $ request , $ response ) ; if ( $ response -> isClientError ( ) || $ response -> isServerError ( ) ) { return $ this -> handleError ( $ request , $ response ) ; } return $ response ; }
Handles request and returns response to the client

@param Request $request
@return mixed|Response
@throws \Exception
Handles request and returns response to the client