@@ 128-137 (lines=10) @@ | ||
125 | * @return string|int|bool|null |
|
126 | * @throws ParameterNotFoundException |
|
127 | */ |
|
128 | private function resolveEnvironmentValue($key) |
|
129 | { |
|
130 | $environmentKey = strtoupper(str_replace('.', '_', $key)); |
|
131 | $value = env($environmentKey, $this->defaultValue); |
|
132 | if ($this->defaultValue !== $value) { |
|
133 | return $value; |
|
134 | } |
|
135 | ||
136 | throw new ParameterNotFoundException(sprintf('No parameter "%s" found', $key)); |
|
137 | } |
|
138 | } |
|
139 |
@@ 185-194 (lines=10) @@ | ||
182 | * @return string|int|bool|null |
|
183 | * @throws ParameterNotFoundException |
|
184 | */ |
|
185 | private function resolveEnvironmentValue($key) |
|
186 | { |
|
187 | $environmentKey = strtoupper(str_replace('.', '_', $key)); |
|
188 | $value = env($environmentKey, $this->defaultValue); |
|
189 | if ($this->defaultValue !== $value) { |
|
190 | return $value; |
|
191 | } |
|
192 | ||
193 | throw new ParameterNotFoundException(sprintf('No parameter "%s" found', $key)); |
|
194 | } |
|
195 | ||
196 | /** |
|
197 | * @return ExpressionLanguage |