Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
DoctrineEntityConverterProvider | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | n/a |
0 / 0 |
|||
register | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | namespace Apie\DoctrineEntityConverter; |
3 | |
4 | use Apie\ServiceProviderGenerator\UseGeneratedMethods; |
5 | use Illuminate\Support\ServiceProvider; |
6 | |
7 | /** |
8 | * This file is generated with apie/service-provider-generator from file: doctrine_entity_converter.yaml |
9 | * @codeCoverageIgnore |
10 | */ |
11 | class DoctrineEntityConverterProvider extends ServiceProvider |
12 | { |
13 | use UseGeneratedMethods; |
14 | |
15 | public function register() |
16 | { |
17 | $this->app->singleton( |
18 | \Apie\DoctrineEntityConverter\OrmBuilder::class, |
19 | function ($app) { |
20 | return new \Apie\DoctrineEntityConverter\OrmBuilder( |
21 | $app->make(\Apie\DoctrineEntityConverter\Factories\PersistenceLayerFactory::class), |
22 | $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class), |
23 | $this->parseArgument('%kernel.debug%') |
24 | ); |
25 | } |
26 | ); |
27 | $this->app->singleton( |
28 | \Apie\DoctrineEntityConverter\Factories\PersistenceLayerFactory::class, |
29 | function ($app) { |
30 | return new \Apie\DoctrineEntityConverter\Factories\PersistenceLayerFactory( |
31 | |
32 | ); |
33 | } |
34 | ); |
35 | |
36 | } |
37 | } |