public function execute( Request $request )
    {
        $controllerClass = $request->attributes->get('_controller');
        if( !($this->isJwtRequired($controllerClass))) {
            return null;
        }

        if( !$this->authoriser->isAuthorised( $request ) ) {
            return new JsonResponse( ['error' => 'Invalid token'], 403 );
        }
        return null;
    }
public function execute( Request $request )
    {
        $controllerClass = $request->attributes->get('_controller');
        if( !($this->isJwtRequired($controllerClass))) {
            return null;
        }

        if( !$this->authoriser->isAuthorised( $request ) ) {
            return new JsonResponse( ['error' => 'Invalid token'], 403 );
        }
        return null;
    }
public function execute ( Request $ request ) { $ controllerClass = $ request -> attributes -> get ( '_controller' ) ; if ( ! ( $ this -> isJwtRequired ( $ controllerClass ) ) ) { return null ; } if ( ! $ this -> authoriser -> isAuthorised ( $ request ) ) { return new JsonResponse ( [ 'error' => 'Invalid token' ] , 403 ) ; } return null ; }
Authorise this request
@param Request $request
@return JsonResponse|null
Authorise this request