@@ -154,13 +154,13 @@ |
||
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | $container->getDefinition('api_platform.metadata.resource.name_collection_factory.yml')->addArgument( |
| 157 | - array_filter($paths, function ($v) { |
|
| 157 | + array_filter($paths, function($v) { |
|
| 158 | 158 | return preg_match('/\.yml$/', $v); |
| 159 | 159 | }) |
| 160 | 160 | ); |
| 161 | 161 | |
| 162 | 162 | $container->getDefinition('api_platform.metadata.resource.name_collection_factory.xml')->addArgument( |
| 163 | - array_filter($paths, function ($v) { |
|
| 163 | + array_filter($paths, function($v) { |
|
| 164 | 164 | return preg_match('/\.xml$/', $v); |
| 165 | 165 | }) |
| 166 | 166 | ); |
@@ -21,7 +21,6 @@ discard block |
||
| 21 | 21 | private $configurations; |
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | - * @param string[] $classes |
|
| 25 | 24 | */ |
| 26 | 25 | public function __construct(array $configurations = []) |
| 27 | 26 | { |
@@ -40,6 +39,9 @@ discard block |
||
| 40 | 39 | $this->configurations[$key] = $value; |
| 41 | 40 | } |
| 42 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $key |
|
| 44 | + */ |
|
| 43 | 45 | public function get($key) { |
| 44 | 46 | return $this->configurations[$key] ?? false; |
| 45 | 47 | } |