메소드 | 설명 | |
---|---|---|
__construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, |
||
getRouteByName ( string $name, array $parameters = [] ) : Symfony\Component\Routing\Route | Find the route using the provided route name. | |
getRouteCollectionForRequest ( |
Finds the correct route for the current request. | |
getRoutesByNames ( array $names, array $parameters = [] ) : Symfony\Component\Routing\Route[] | Find many routes by their names using the provided list of names. |
메소드 | 설명 | |
---|---|---|
getRedirectRoute ( |
||
getRedirectWebSpaceRoute ( ) : Symfony\Component\Routing\Route | ||
getStructureRoute ( |
||
getUrlWithoutEndingTrailingSlash ( $resourceLocator ) : string |
메소드 | 설명 | |
---|---|---|
checkResourceLocator ( ) : boolean | Checks if the resource locator is valid. |
public __construct ( Sulu\Component\DocumentManager\DocumentManagerInterface $documentManager, |
||
$documentManager | Sulu\Component\DocumentManager\DocumentManagerInterface | |
$documentInspector | ||
$resourceLocatorStrategyPool | Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyPoolInterface | |
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface | |
$requestAnalyzer | Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface | |
$defaultLocaleProvider | Sulu\Bundle\WebsiteBundle\Locale\DefaultLocaleProviderInterface | |
$urlReplacer | Sulu\Component\Webspace\Url\ReplacerInterface |
protected getRedirectRoute ( |
||
$request | ||
$url | ||
리턴 | Symfony\Component\Routing\Route |
protected getRedirectWebSpaceRoute ( ) : Symfony\Component\Routing\Route | ||
리턴 | Symfony\Component\Routing\Route |
public getRouteByName ( string $name, array $parameters = [] ) : Symfony\Component\Routing\Route | ||
$name | string | the route name to fetch |
$parameters | array | DEPRECATED the parameters as they are passed to the UrlGeneratorInterface::generate call |
리턴 | Symfony\Component\Routing\Route |
public getRouteCollectionForRequest ( |
||
$request | A request against which to match | |
리턴 | with all Routes that could potentially match $request. Empty collection if nothing can match |
public getRoutesByNames ( array $names, array $parameters = [] ) : Symfony\Component\Routing\Route[] | ||
$names | array | the list of names to retrieve |
$parameters | array | DEPRECATED the parameters as they are passed to the UrlGeneratorInterface::generate call. (Only one array, not one for each entry in $names |
리턴 | Symfony\Component\Routing\Route[] | iterable thing with the keys the names of the $names argument |
protected getStructureRoute ( |
||
$request | ||
$content | ||
리턴 | Symfony\Component\Routing\Route |
protected getUrlWithoutEndingTrailingSlash ( $resourceLocator ) : string | ||
$resourceLocator | ||
리턴 | string |