Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
FtpServerServiceProvider
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\FtpServer;
3
4use Apie\ServiceProviderGenerator\UseGeneratedMethods;
5use Illuminate\Support\ServiceProvider;
6
7/**
8 * This file is generated with apie/service-provider-generator from file: ftp.yaml
9 * @codeCoverageIgnore
10 */
11class FtpServerServiceProvider extends ServiceProvider
12{
13    use UseGeneratedMethods;
14
15    public function register()
16    {
17        $this->registerSingleton(
18            \Apie\FtpServer\FtpServerCommand::class,
19            function ($app) {
20                return new \Apie\FtpServer\FtpServerCommand(
21                    $app->make(\Apie\FtpServer\FtpServerRunner::class),
22                    $app->make(\Apie\ApieFileSystem\ApieFilesystemFactory::class),
23                    $app->make(\Apie\Core\ContextBuilders\ContextBuilderFactory::class),
24                    $app->make(\Apie\FtpServer\Factories\ServerFactoryInterface::class),
25                    $this->parseArgument('%apie.ftp_server.public_ip%', \Apie\FtpServer\FtpServerCommand::class, 4),
26                    $this->parseArgument('%apie.ftp_server.passive_min_port%', \Apie\FtpServer\FtpServerCommand::class, 5),
27                    $this->parseArgument('%apie.ftp_server.passive_max_port%', \Apie\FtpServer\FtpServerCommand::class, 6)
28                );
29            }
30        );
31        \Apie\ServiceProviderGenerator\TagMap::register(
32            $this->app,
33            \Apie\FtpServer\FtpServerCommand::class,
34            array(
35              0 =>
36              array(
37                'name' => 'console.command',
38              ),
39            )
40        );
41        $this->app->tag([\Apie\FtpServer\FtpServerCommand::class], 'console.command');
42        $this->app->bind(\Apie\FtpServer\Factories\ServerFactoryInterface::class, \Apie\FtpServer\Factories\SimpleFtpServerFactory::class);
43        
44        $this->registerSingleton(
45            \Apie\FtpServer\Factories\SimpleFtpServerFactory::class,
46            function ($app) {
47                return new \Apie\FtpServer\Factories\SimpleFtpServerFactory(
48                
49                );
50            }
51        );
52        $this->registerSingleton(
53            \Apie\FtpServer\FtpServerRunner::class,
54            function ($app) {
55                return \Apie\FtpServer\FtpServerRunner::create(
56                
57                );
58                
59            }
60        );
61        
62    }
63}