| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class PricingServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Boot the services for the application. |
||
| 13 | * |
||
| 14 | * @return void |
||
| 15 | */ |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | $this->bootConfig(); |
||
| 19 | |||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Register any application services. |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function register() |
||
| 28 | { |
||
| 29 | $this->app->singleton('pricing', function ($app) { |
||
| 30 | return new Pricing( |
||
| 31 | $app, |
||
| 32 | new Pipeline($app), |
||
| 33 | $app['config']['pricing.modules'] |
||
| 34 | ); |
||
| 35 | }); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Boot configure. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | protected function bootConfig() |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the services provided by the provider. |
||
| 56 | * |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function provides() |
||
| 62 | } |
||
| 63 | } |