src/Zicht/Bundle/UrlBundle/Aliasing/Aliasing.php
public function findAlias($publicUrl, $internalUrl)
    {
        $ret = null;

        $params = ['public_url' => $publicUrl, 'internal_url' => $internalUrl];
        if ($alias = $this->getRepository()->findOneBy($params)) {
            $ret = $alias;
        }

        return $ret;
    }
public function findAlias($publicUrl, $internalUrl)
    {
        $ret = null;

        $params = ['public_url' => $publicUrl, 'internal_url' => $internalUrl];
        if ($alias = $this->getRepository()->findOneBy($params)) {
            $ret = $alias;
        }

        return $ret;
    }
public function findAlias ( $ publicUrl , $ internalUrl ) { $ ret = null ; $ params = [ 'public_url' => $ publicUrl , 'internal_url' => $ internalUrl ] ; if ( $ alias = $ this -> getRepository ( ) -> findOneBy ( $ params ) ) { $ ret = $ alias ; } return $ ret ; }
Find an alias matching both public and internal url

@param string $publicUrl
@param string $internalUrl
@return null|UrlAlias
Find an alias matching both public and internal url