Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
MakerServiceProvider | 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\Maker; |
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: maker.yaml |
9 | * @codeCoverageIgnore |
10 | */ |
11 | class MakerServiceProvider extends ServiceProvider |
12 | { |
13 | use UseGeneratedMethods; |
14 | |
15 | public function register() |
16 | { |
17 | $this->app->singleton( |
18 | \Apie\Maker\CodeGenerators\CreateDomainObject::class, |
19 | function ($app) { |
20 | return new \Apie\Maker\CodeGenerators\CreateDomainObject( |
21 | $this->parseArgument('%apie.bounded_contexts%') |
22 | ); |
23 | } |
24 | ); |
25 | $this->app->singleton( |
26 | \Apie\Maker\Command\ApieCreateDomainCommand::class, |
27 | function ($app) { |
28 | return new \Apie\Maker\Command\ApieCreateDomainCommand( |
29 | $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class), |
30 | $app->make(\Apie\Maker\CodeGenerators\CreateDomainObject::class), |
31 | $app->make(\Apie\Core\Other\FileWriterInterface::class) |
32 | ); |
33 | } |
34 | ); |
35 | \Apie\ServiceProviderGenerator\TagMap::register( |
36 | $this->app, |
37 | \Apie\Maker\Command\ApieCreateDomainCommand::class, |
38 | array( |
39 | 0 => |
40 | array( |
41 | 'name' => 'console.command', |
42 | ), |
43 | ) |
44 | ); |
45 | $this->app->tag([\Apie\Maker\Command\ApieCreateDomainCommand::class], 'console.command'); |
46 | $this->app->singleton( |
47 | \Apie\Maker\BoundedContext\Services\CodeWriter::class, |
48 | function ($app) { |
49 | return new \Apie\Maker\BoundedContext\Services\CodeWriter( |
50 | $app->make(\Apie\Core\Other\FileWriterInterface::class) |
51 | ); |
52 | } |
53 | ); |
54 | \Apie\ServiceProviderGenerator\TagMap::register( |
55 | $this->app, |
56 | \Apie\Maker\BoundedContext\Services\CodeWriter::class, |
57 | array( |
58 | 0 => 'apie.context', |
59 | ) |
60 | ); |
61 | $this->app->tag([\Apie\Maker\BoundedContext\Services\CodeWriter::class], 'apie.context'); |
62 | $this->app->singleton( |
63 | \Apie\Maker\ContextBuilders\AddMakerConfigToContext::class, |
64 | function ($app) { |
65 | return new \Apie\Maker\ContextBuilders\AddMakerConfigToContext( |
66 | $this->parseArgument('%apie.maker%') |
67 | ); |
68 | } |
69 | ); |
70 | \Apie\ServiceProviderGenerator\TagMap::register( |
71 | $this->app, |
72 | \Apie\Maker\ContextBuilders\AddMakerConfigToContext::class, |
73 | array( |
74 | 0 => 'apie.core.context_builder', |
75 | ) |
76 | ); |
77 | $this->app->tag([\Apie\Maker\ContextBuilders\AddMakerConfigToContext::class], 'apie.core.context_builder'); |
78 | |
79 | } |
80 | } |