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