RouteConfigurationProcessor
class RouteConfigurationProcessor (View source)
Constants
MAXIMUM_SUBROUTE_RECURSIONS |
The maximum number of recursions when merging subroute configurations. |
Properties
protected int | $subRoutesRecursionLevel | Counts how many SubRoutes have been loaded. If this number exceeds MAXIMUM_SUBROUTE_RECURSIONS, an exception is thrown |
|
protected array | $routeSettings | ||
protected array | $orderedListOfContextNames | ||
protected Package[] | $packages | ||
protected YamlSource | $configurationSource |
Methods
RouteConfigurationProcessor constructor.
No description
Merges routes from Neos.Flow.mvc.routes settings into $routeDefinitions NOTE: Routes from settings will always be appended to existing route definitions from the main Routes configuration!
Loads specified sub routes and builds composite routes.
Merges all routes in $routesConfiguration with the sub routes in $subRoutesConfiguration
Replaces placeholders in the format
Details
__construct(array $routeSettings, array $orderedListOfContextNames, array $packages, YamlSource $configurationSource)
RouteConfigurationProcessor constructor.
array
process(array $routeDefinitions)
No description
protected array
includeSubRoutesFromSettings(array $routeDefinitions)
Merges routes from Neos.Flow.mvc.routes settings into $routeDefinitions NOTE: Routes from settings will always be appended to existing route definitions from the main Routes configuration!
protected array
mergeRoutesWithSubRoutes(array $routesConfiguration)
Loads specified sub routes and builds composite routes.
protected array
buildSubRouteConfigurations(array $routesConfiguration, array $subRoutesConfiguration, string $subRouteKey, array $subRouteOptions)
Merges all routes in $routesConfiguration with the sub routes in $subRoutesConfiguration
protected mixed
replacePlaceholders(string|array $value, array $variables)
Replaces placeholders in the format