Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
ConsoleServiceProvider
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
2namespace Apie\Console;
3
4use Apie\ServiceProviderGenerator\UseGeneratedMethods;
5use Illuminate\Support\ServiceProvider;
6
7/**
8 * This file is generated with apie/service-provider-generator from file: console.yaml
9 * @codeCoverageIgnore
10 */
11class ConsoleServiceProvider extends ServiceProvider
12{
13    use UseGeneratedMethods;
14
15    public function register()
16    {
17        $this->app->singleton(
18            \Apie\Common\Wrappers\ConsoleCommandFactory::class,
19            function ($app) {
20                return new \Apie\Common\Wrappers\ConsoleCommandFactory(
21                    $app->make(\Apie\Console\ConsoleCommandFactory::class),
22                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
23                    $app->make(\Apie\Core\BoundedContext\BoundedContextHashmap::class)
24                );
25            }
26        );
27        $this->app->singleton(
28            \Apie\Console\ConsoleCliStorage::class,
29            function ($app) {
30                return new \Apie\Console\ConsoleCliStorage(
31                    $app->make(\Apie\Core\Other\FileWriterInterface::class)
32                );
33            }
34        );
35        $this->app->bind('apie.console.factory', \Apie\Common\Wrappers\ConsoleCommandFactory::class);
36        
37        $this->app->singleton(
38            \Apie\Console\ConsoleCommandFactory::class,
39            function ($app) {
40                return new \Apie\Console\ConsoleCommandFactory(
41                    $app->make(\Apie\Common\ApieFacade::class),
42                    $app->make(\Apie\Common\ActionDefinitionProvider::class),
43                    $app->make(\Apie\Console\ApieInputHelper::class),
44                    $app->make(\Apie\Console\ConsoleCliStorage::class)
45                );
46            }
47        );
48        $this->app->singleton(
49            \Apie\Console\ApieInputHelper::class,
50            function ($app) {
51                return \Apie\Console\ApieInputHelper::create(
52                    $this->getTaggedServicesIterator(\Apie\Console\Helpers\InputInteractorInterface::class)
53                );
54                
55            }
56        );
57        \Apie\ServiceProviderGenerator\TagMap::register(
58            $this->app,
59            \Apie\Console\ApieInputHelper::class,
60            array(
61              0 =>
62              array(
63                'name' => 'console.helper',
64              ),
65            )
66        );
67        $this->app->tag([\Apie\Console\ApieInputHelper::class], 'console.helper');
68        
69    }
70}