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 |
| 2 | namespace Apie\FtpServer; |
| 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: ftp.yaml |
| 9 | * @codeCoverageIgnore |
| 10 | */ |
| 11 | class FtpServerServiceProvider extends ServiceProvider |
| 12 | { |
| 13 | use UseGeneratedMethods; |
| 14 | |
| 15 | public function register() |
| 16 | { |
| 17 | $this->app->singleton( |
| 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 | $this->parseArgument('%apie.ftp_server.public_ip%', \Apie\FtpServer\FtpServerCommand::class, 3), |
| 25 | $this->parseArgument('%apie.ftp_server.passive_min_port%', \Apie\FtpServer\FtpServerCommand::class, 4), |
| 26 | $this->parseArgument('%apie.ftp_server.passive_max_port%', \Apie\FtpServer\FtpServerCommand::class, 5) |
| 27 | ); |
| 28 | } |
| 29 | ); |
| 30 | \Apie\ServiceProviderGenerator\TagMap::register( |
| 31 | $this->app, |
| 32 | \Apie\FtpServer\FtpServerCommand::class, |
| 33 | array( |
| 34 | 0 => |
| 35 | array( |
| 36 | 'name' => 'console.command', |
| 37 | ), |
| 38 | ) |
| 39 | ); |
| 40 | $this->app->tag([\Apie\FtpServer\FtpServerCommand::class], 'console.command'); |
| 41 | $this->app->singleton( |
| 42 | \Apie\FtpServer\FtpServerRunner::class, |
| 43 | function ($app) { |
| 44 | return \Apie\FtpServer\FtpServerRunner::create( |
| 45 | |
| 46 | ); |
| 47 | |
| 48 | } |
| 49 | ); |
| 50 | |
| 51 | } |
| 52 | } |