src/Zicht/Bundle/UrlBundle/Aliasing/Aliasing.php
public function hasPublicAlias($internalUrl, $asObject = false, $mode = UrlAlias::REWRITE)
    {
        $ret = null;

        if ($alias = $this->repository->findOneByInternalUrl($internalUrl, $mode)) {
            $ret = ($asObject ? $alias : $alias->getPublicUrl());
        }

        return $ret;
    }
public function hasPublicAlias($internalUrl, $asObject = false, $mode = UrlAlias::REWRITE)
    {
        $ret = null;

        if ($alias = $this->repository->findOneByInternalUrl($internalUrl, $mode)) {
            $ret = ($asObject ? $alias : $alias->getPublicUrl());
        }

        return $ret;
    }
public function hasPublicAlias ( $ internalUrl , $ asObject = false , $ mode = UrlAlias :: REWRITE ) { $ ret = null ; if ( $ alias = $ this -> repository -> findOneByInternalUrl ( $ internalUrl , $ mode ) ) { $ ret = ( $ asObject ? $ alias : $ alias -> getPublicUrl ( ) ) ; } return $ ret ; }
Check if the passed internal URL has a public url alias.

@param string $internalUrl
@param bool $asObject
@param integer $mode
@return null|string|UrlAlias
Check if the passed internal URL has a public url alias .