You are here

public function DynamicRouter::getRouteEnhancers in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/DynamicRouter.php \Symfony\Cmf\Component\Routing\DynamicRouter::getRouteEnhancers()

Sorts the enhancers and flattens them.

Return value

RouteEnhancerInterface[] the enhancers ordered by priority

1 call to DynamicRouter::getRouteEnhancers()
DynamicRouter::applyRouteEnhancers in vendor/symfony-cmf/routing/DynamicRouter.php
Apply the route enhancers to the defaults, according to priorities

File

vendor/symfony-cmf/routing/DynamicRouter.php, line 308

Class

DynamicRouter
A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRouteEnhancers() {
  if (empty($this->sortedEnhancers)) {
    $this->sortedEnhancers = $this
      ->sortRouteEnhancers();
  }
  return $this->sortedEnhancers;
}