Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| ExportServiceProvider | 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\Export; |
| 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: export.yaml |
| 9 | * @codeCoverageIgnore |
| 10 | */ |
| 11 | class ExportServiceProvider extends ServiceProvider |
| 12 | { |
| 13 | use UseGeneratedMethods; |
| 14 | |
| 15 | public function register() |
| 16 | { |
| 17 | $this->app->singleton( |
| 18 | \Apie\Export\ExcelExport::class, |
| 19 | function ($app) { |
| 20 | return new \Apie\Export\ExcelExport( |
| 21 | |
| 22 | ); |
| 23 | } |
| 24 | ); |
| 25 | \Apie\ServiceProviderGenerator\TagMap::register( |
| 26 | $this->app, |
| 27 | \Apie\Export\ExcelExport::class, |
| 28 | array( |
| 29 | 0 => |
| 30 | array( |
| 31 | 'name' => 'Apie\\Export\\ExportInterface', |
| 32 | ), |
| 33 | ) |
| 34 | ); |
| 35 | $this->app->tag([\Apie\Export\ExcelExport::class], \Apie\Export\ExportInterface::class); |
| 36 | $this->app->singleton( |
| 37 | \Apie\Export\ChainedExport::class, |
| 38 | function ($app) { |
| 39 | return new \Apie\Export\ChainedExport( |
| 40 | $this->getTaggedServicesIterator(\Apie\Export\ExportInterface::class) |
| 41 | ); |
| 42 | } |
| 43 | ); |
| 44 | \Apie\ServiceProviderGenerator\TagMap::register( |
| 45 | $this->app, |
| 46 | \Apie\Export\ChainedExport::class, |
| 47 | array( |
| 48 | 0 => |
| 49 | array( |
| 50 | 'name' => 'apie.context', |
| 51 | ), |
| 52 | ) |
| 53 | ); |
| 54 | $this->app->tag([\Apie\Export\ChainedExport::class], 'apie.context'); |
| 55 | $this->app->bind(\Apie\Export\ExportInterface::class, \Apie\Export\ChainedExport::class); |
| 56 | |
| 57 | $this->app->singleton( |
| 58 | \Apie\Export\EntityExport::class, |
| 59 | function ($app) { |
| 60 | return new \Apie\Export\EntityExport( |
| 61 | $app->make(\Apie\HtmlBuilders\Columns\ColumnSelector::class), |
| 62 | $app->make(\Apie\Export\ExportInterface::class), |
| 63 | $app->make(\Apie\Serializer\Serializer::class) |
| 64 | ); |
| 65 | } |
| 66 | ); |
| 67 | \Apie\ServiceProviderGenerator\TagMap::register( |
| 68 | $this->app, |
| 69 | \Apie\Export\EntityExport::class, |
| 70 | array( |
| 71 | 0 => |
| 72 | array( |
| 73 | 'name' => 'apie.context', |
| 74 | ), |
| 75 | ) |
| 76 | ); |
| 77 | $this->app->tag([\Apie\Export\EntityExport::class], 'apie.context'); |
| 78 | |
| 79 | } |
| 80 | } |