public function removeCommand($source, $host = null)
    {
        $redirect = $this->redirectStorage->getOneBySourceUriPathAndHost($source, $host);
        if ($redirect === null) {
            $this->outputLine('There is no redirect with the source URI path "%s", maybe you forgot the --host argument ?', [$source]);
            $this->quit(1);
        }
        $this->redirectStorage->removeOneBySourceUriPathAndHost($source, $host);
        $this->outputLine('Removed redirect with the source URI path "%s"', [$source]);
    }
public function removeCommand($source, $host = null)
    {
        $redirect = $this->redirectStorage->getOneBySourceUriPathAndHost($source, $host);
        if ($redirect === null) {
            $this->outputLine('There is no redirect with the source URI path "%s", maybe you forgot the --host argument ?', [$source]);
            $this->quit(1);
        }
        $this->redirectStorage->removeOneBySourceUriPathAndHost($source, $host);
        $this->outputLine('Removed redirect with the source URI path "%s"', [$source]);
    }
public function removeCommand ( $ source , $ host = null ) { $ redirect = $ this -> redirectStorage -> getOneBySourceUriPathAndHost ( $ source , $ host ) ; if ( $ redirect === null ) { $ this -> outputLine ( 'There is no redirect with the source URI path "%s", maybe you forgot the --host argument ?' , [ $ source ] ) ; $ this -> quit ( 1 ) ; } $ this -> redirectStorage -> removeOneBySourceUriPathAndHost ( $ source , $ host ) ; $ this -> outputLine ( 'Removed redirect with the source URI path "%s"' , [ $ source ] ) ; }
Remove a single redirect

This command is used the delete a single redirect. The redirect is identified by the ``source`` argument.
When using multiple domains for redirects the ``host`` argument is necessary to identify the correct one.

@param string $source The source URI path of the redirect to remove, as given by ``redirect:list``
@param string $host (optional) Only remove redirects that use this host
@return void
Remove a single redirect