public function handle(ComponentContext $componentContext)
    {
        $routingMatchResults = $componentContext->getParameter(RoutingComponent::class, 'matchResults');
        if ($routingMatchResults !== NULL) {
            return;
        }
        $httpRequest = $componentContext->getHttpRequest();
        $response = $this->redirectService->buildResponseIfApplicable($httpRequest);
        if ($response !== null) {
            $componentContext->replaceHttpResponse($response);
            $componentContext->setParameter(ComponentChain::class, 'cancel', true);
        }
    }
public function handle(ComponentContext $componentContext)
    {
        $routingMatchResults = $componentContext->getParameter(RoutingComponent::class, 'matchResults');
        if ($routingMatchResults !== NULL) {
            return;
        }
        $httpRequest = $componentContext->getHttpRequest();
        $response = $this->redirectService->buildResponseIfApplicable($httpRequest);
        if ($response !== null) {
            $componentContext->replaceHttpResponse($response);
            $componentContext->setParameter(ComponentChain::class, 'cancel', true);
        }
    }
public function handle ( ComponentContext $ componentContext ) { $ routingMatchResults = $ componentContext -> getParameter ( RoutingComponent :: class , 'matchResults' ) ; if ( $ routingMatchResults !== NULL ) { return ; } $ httpRequest = $ componentContext -> getHttpRequest ( ) ; $ response = $ this -> redirectService -> buildResponseIfApplicable ( $ httpRequest ) ; if ( $ response !== null ) { $ componentContext -> replaceHttpResponse ( $ response ) ; $ componentContext -> setParameter ( ComponentChain :: class , 'cancel' , true ) ; } }
Check if the current request match a redirect

@param ComponentContext $componentContext
@return void
Check if the current request match a redirect