Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| AddBasicAuthServiceProvider | 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\Common; |
| 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: add_basic_auth.yaml |
| 9 | * @codeCoverageIgnore |
| 10 | */ |
| 11 | class AddBasicAuthServiceProvider extends ServiceProvider |
| 12 | { |
| 13 | use UseGeneratedMethods; |
| 14 | |
| 15 | public function register() |
| 16 | { |
| 17 | $this->app->singleton( |
| 18 | \Apie\Common\BasicAuth\AddBasicAuthContextBuilder::class, |
| 19 | function ($app) { |
| 20 | return new \Apie\Common\BasicAuth\AddBasicAuthContextBuilder( |
| 21 | |
| 22 | ); |
| 23 | } |
| 24 | ); |
| 25 | \Apie\ServiceProviderGenerator\TagMap::register( |
| 26 | $this->app, |
| 27 | \Apie\Common\BasicAuth\AddBasicAuthContextBuilder::class, |
| 28 | array( |
| 29 | 0 => 'apie.core.context_builder', |
| 30 | ) |
| 31 | ); |
| 32 | $this->app->tag([\Apie\Common\BasicAuth\AddBasicAuthContextBuilder::class], 'apie.core.context_builder'); |
| 33 | |
| 34 | } |
| 35 | } |