/**
  * Remove all redirections
  *
  * @param boolean $force safety belt
  * @return void
  */
 public function removeAllCommand($force = false)
 {
     if (!$force) {
         $this->output->outputLine('Add --force if you really want to delete all redirections!');
         $this->quit(1);
     }
     $this->redirectService->removeAll();
     $this->outputLine('All redirections were removed.');
 }
 /**
  * @param ComponentContext $componentContext
  * @return void
  */
 public function handle(ComponentContext $componentContext)
 {
     $routingMatchResults = $componentContext->getParameter(RoutingComponent::class, 'matchResults');
     if ($routingMatchResults !== NULL) {
         return;
     }
     $httpRequest = $componentContext->getHttpRequest();
     $this->redirectService->triggerRedirectIfApplicable($httpRequest);
 }