Bundle/PageBundle/Handler/RedirectionHandler.php
public function handleError($redirection, $error404)
    {
        if ($redirection) {
            $this->increaseCounter($redirection);

            return $redirection;
        } elseif ($error404) {
            $this->increaseCounter($error404);

            return $error404;
        }

        throw new NoResultException();
    }
public function handleError($redirection, $error404)
    {
        if ($redirection) {
            $this->increaseCounter($redirection);

            return $redirection;
        } elseif ($error404) {
            $this->increaseCounter($error404);

            return $error404;
        }

        throw new NoResultException();
    }
public function handleError ( $ redirection , $ error404 ) { if ( $ redirection ) { $ this -> increaseCounter ( $ redirection ) ; return $ redirection ; } elseif ( $ error404 ) { $ this -> increaseCounter ( $ error404 ) ; return $ error404 ; } throw new NoResultException ( ) ; }
Check if the Error and its associated Redirection exists, then increase the counter of the Error|Redirection.

@param Redirection|null $redirection
@param Error404|null    $error404

@throws NoResultException

@return Redirection|Error404
Check if the Error and its associated Redirection exists then increase the counter of the Error|Redirection .