You are here

public function NestedMatcher::getRouteFilters in Zircon Profile 8

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

Sorts the filters and flattens them.

Return value

RouteFilterInterface[] the filters ordered by priority

1 call to NestedMatcher::getRouteFilters()
NestedMatcher::matchRequest in vendor/symfony-cmf/routing/NestedMatcher/NestedMatcher.php
Tries to match a request with a set of routes.

File

vendor/symfony-cmf/routing/NestedMatcher/NestedMatcher.php, line 162

Class

NestedMatcher
A more flexible approach to matching. The route collection to match against can be dynamically determined based on the request and users can inject their own filters or use a custom final matching strategy.

Namespace

Symfony\Cmf\Component\Routing\NestedMatcher

Code

public function getRouteFilters() {
  if (empty($this->sortedFilters)) {
    $this->sortedFilters = $this
      ->sortFilters();
  }
  return $this->sortedFilters;
}