PHP Class Sulu\Component\CustomUrl\Generator\Generator

Inheritance: implements Sulu\Component\CustomUrl\Generator\GeneratorInterface
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode Description
__construct ( Sulu\Component\Webspace\Url\ReplacerInterface $urlReplacer )
generate ( $baseDomain, $domainParts, Localization $locale = null )

Méthodes protégées

Méthode Description
localizeDomain ( string $domain, Localization $locale ) : string Localize given domain.

Method Details

__construct() public méthode

public __construct ( Sulu\Component\Webspace\Url\ReplacerInterface $urlReplacer )
$urlReplacer Sulu\Component\Webspace\Url\ReplacerInterface

generate() public méthode

public generate ( $baseDomain, $domainParts, Localization $locale = null )
$locale Sulu\Component\Localization\Localization

localizeDomain() protected méthode

Localize given domain.
protected localizeDomain ( string $domain, Localization $locale ) : string
$domain string
$locale Sulu\Component\Localization\Localization
Résultat string