Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function getParameterFromResolver(SiteAccess $siteAccess, string $paramName, string $namespace) |
||
37 | { |
||
38 | $triedScopes = []; |
||
39 | |||
40 | foreach ($siteAccess->groups as $group) { |
||
41 | $groupScopeParamName = $this->resolveScopeRelativeParamName($paramName, $namespace, $group->getName()); |
||
42 | if ($this->container->hasParameter($groupScopeParamName)) { |
||
43 | return $this->container->getParameter($groupScopeParamName); |
||
44 | } |
||
45 | |||
46 | $triedScopes[] = $group->getName(); |
||
47 | } |
||
48 | |||
49 | throw new ParameterNotFoundException($paramName, $namespace, $triedScopes); |
||
50 | } |
||
51 | } |
||
52 |