PHP Class Sulu\Component\Webspace\Manager\WebspaceCollectionBuilder

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, Sulu\Component\Webspace\Url\ReplacerInterface $urlReplacer, $path )
build ( )

Private Methods

Method Description
buildEnvironment ( Portal $portal, Sulu\Component\Webspace\Environment $environment )
buildEnvironments ( Portal $portal )
buildPortals ( Webspace $webspace )
buildUrlFullMatch ( Portal $portal, Sulu\Component\Webspace\Environment $environment, Segment[] $segments, string[] $replacers, string $urlAddress, Localization $localization, string $urlAnalyticsKey, Url $url )
buildUrlPartialMatch ( Portal $portal, Sulu\Component\Webspace\Environment $environment, string $urlAddress, string $urlAnalyticsKey, Url $url )
buildUrlRedirect ( Webspace $webspace, Sulu\Component\Webspace\Environment $environment, Portal $portal, string $urlAddress, string $urlRedirect, string $urlAnalyticsKey, Url $url )
buildUrls ( Portal $portal, Sulu\Component\Webspace\Environment $environment, Url $url, $segments, $urlAddress, $urlAnalyticsKey ) Builds the URLs for the portal, which are not a redirect.
generateUrlAddress ( string $pattern, array $replacers ) : string Replaces the given values in the pattern.
validateUrlPartialMatch ( $urlResult, Sulu\Component\Webspace\Environment $environment ) : boolean

Method Details

__construct() public method

public __construct ( Symfony\Component\Config\Loader\LoaderInterface $loader, Sulu\Component\Webspace\Url\ReplacerInterface $urlReplacer, $path )
$loader Symfony\Component\Config\Loader\LoaderInterface The loader for the xml config files
$urlReplacer Sulu\Component\Webspace\Url\ReplacerInterface Factory for url-replacers
$path string The path to the xml config files

build() public method

public build ( )