| 1 | <?php namespace Cornford\Logical\Providers; |
||
| 6 | class LogicalServiceProvider extends ServiceProvider |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Indicates if loading of the provider is deferred. |
||
| 11 | * |
||
| 12 | * @var bool |
||
| 13 | */ |
||
| 14 | protected $defer = true; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Bootstrap the application events. |
||
| 18 | * |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | public function boot() |
||
| 22 | { |
||
| 23 | // $this->package('cornford/logical'); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Register the service provider. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | $this->app->singleton( |
||
| 34 | 'logical', |
||
| 35 | function ($app) { |
||
|
|
|||
| 36 | return (new LogicalFactory)->build(); |
||
| 37 | } |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Get the services provided by the provider. |
||
| 43 | * |
||
| 44 | * @return string[] |
||
| 45 | */ |
||
| 46 | public function provides() |
||
| 50 | } |
||
| 51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.