| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class ConsoleTaskerProvider extends ServiceProvider |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * The configuration file path. |
||
| 22 | * |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected const CONFIG = __DIR__ . '/../../config/console_tasker.php'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Bootstrap the application services. |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | public function boot() |
||
| 33 | { |
||
| 34 | if ($this->app->runningInConsole()) { |
||
| 35 | $this->commands(MakeConsoleTaskerCommand::class); |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->publishes([ |
||
| 39 | static::CONFIG => $this->app->configPath('console_tasker.php') |
||
| 40 | ], 'console_tasker'); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Register the bindings |
||
| 45 | * |
||
| 46 | * @return void |
||
| 47 | */ |
||
| 48 | public function register() |
||
| 57 | } |
||
| 58 | } |
||
| 59 |