@@ 391-399 (lines=9) @@ | ||
388 | * |
|
389 | * @return callable |
|
390 | */ |
|
391 | private function getOrmMappingDriverFactorySimpleXml(Container $container): callable |
|
392 | { |
|
393 | return $container->protect(function (array $mapping, Configuration $config) { |
|
394 | return new SimplifiedXmlDriver( |
|
395 | [$mapping['path'] => $mapping['namespace']], |
|
396 | $mapping['extension'] ?? SimplifiedXmlDriver::DEFAULT_FILE_EXTENSION |
|
397 | ); |
|
398 | }); |
|
399 | } |
|
400 | ||
401 | /** |
|
402 | * @param Container $container |
|
@@ 376-384 (lines=9) @@ | ||
373 | * |
|
374 | * @return callable |
|
375 | */ |
|
376 | private function getOrmMappingDriverFactorySimpleYaml(Container $container): callable |
|
377 | { |
|
378 | return $container->protect(function (array $mapping, Configuration $config) { |
|
379 | return new SimplifiedYamlDriver( |
|
380 | [$mapping['path'] => $mapping['namespace']], |
|
381 | $mapping['extension'] ?? SimplifiedYamlDriver::DEFAULT_FILE_EXTENSION |
|
382 | ); |
|
383 | }); |
|
384 | } |
|
385 | ||
386 | /** |
|
387 | * @param Container $container |