You are here

protected function UrlMatcher::mergeDefaults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Matcher/UrlMatcher.php \Symfony\Component\Routing\Matcher\UrlMatcher::mergeDefaults()

Get merged default parameters.

Parameters

array $params The parameters:

array $defaults The defaults:

Return value

array Merged default parameters

6 calls to UrlMatcher::mergeDefaults()
ApacheUrlMatcher::match in vendor/symfony/routing/Matcher/ApacheUrlMatcher.php
Tries to match a URL based on Apache mod_rewrite matching.
ProjectUrlMatcher::match in vendor/symfony/routing/Tests/Fixtures/dumper/url_matcher1.php
Tries to match a URL path with a set of routes.
ProjectUrlMatcher::match in vendor/symfony/routing/Tests/Fixtures/dumper/url_matcher3.php
Tries to match a URL path with a set of routes.
ProjectUrlMatcher::match in vendor/symfony/routing/Tests/Fixtures/dumper/url_matcher2.php
Tries to match a URL path with a set of routes.
UrlMatcher::getAttributes in vendor/symfony-cmf/routing/NestedMatcher/UrlMatcher.php
Returns an array of values to use as request attributes.

... See full list

File

vendor/symfony/routing/Matcher/UrlMatcher.php, line 229

Class

UrlMatcher
UrlMatcher matches URL based on a set of routes.

Namespace

Symfony\Component\Routing\Matcher

Code

protected function mergeDefaults($params, $defaults) {
  foreach ($params as $key => $value) {
    if (!is_int($key)) {
      $defaults[$key] = $value;
    }
  }
  return $defaults;
}