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