RoutesLoader
class RoutesLoader implements LoaderInterface (View source)
Constants
private MAXIMUM_SUBROUTE_RECURSIONS |
The maximum number of recursions when merging subroute configurations. |
Methods
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
Details
__construct(YamlSource $yamlSource, ConfigurationManager $configurationManager)
No description
array
load(array $packages, ApplicationContext $context)
No description
protected array
includeSubRoutesFromSettings(array $routeDefinitions, array $routeSettings)
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 $packages, ApplicationContext $context, array $routesConfiguration, int $subRoutesRecursionLevel = 0)
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