src/Sensorario/Resources/Container.php 2 locations
|
@@ 95-100 (lines=6) @@
|
| 92 |
|
$allowed = []; |
| 93 |
|
|
| 94 |
|
foreach ($this->allowed as $item) { |
| 95 |
|
if (isset($this->resources['resources'][$resource]['constraints'][$item])) { |
| 96 |
|
$allowed = array_merge( |
| 97 |
|
$allowed, |
| 98 |
|
$this->resources['resources'][$resource]['constraints'][$item] |
| 99 |
|
); |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
return $allowed; |
|
@@ 110-112 (lines=3) @@
|
| 107 |
|
$constraintName, |
| 108 |
|
$resource |
| 109 |
|
) { |
| 110 |
|
if (isset($this->resources['resources'][$resource]['constraints'][$constraintName])) { |
| 111 |
|
return $this->resources['resources'][$resource]['constraints'][$constraintName]; |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
return []; |
| 115 |
|
} |