Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function create(array $config): Configuration |
||
43 | { |
||
44 | try { |
||
45 | return $this->serviceManager->build(Configuration::class, $config); |
||
46 | } catch (ContainerExceptionInterface $e) { |
||
47 | throw new ConfigurationFactoryException( |
||
48 | sprintf('Failed to create ORM Configuration: %s', $e->getMessage()), |
||
|
|||
49 | $e->getCode(), |
||
50 | $e |
||
51 | ); |
||
55 |