procyonweb /
laravel-translation-generator
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace ProcyonWeb\TranslationGenerator; |
||
| 6 | |||
| 7 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Register the service provider. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function register() |
||
| 15 | { |
||
| 16 | if ($this->app->runningInConsole()) { |
||
| 17 | $this->commands( |
||
| 18 | [ |
||
| 19 | GenerateCommand::class, |
||
| 20 | ShowFilesCommand::class, |
||
| 21 | ShowUntranslatedCommand::class, |
||
| 22 | DownloadCommand::class, |
||
| 23 | ] |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Bootstrap any application services. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function boot() |
||
| 34 | { |
||
| 35 | $this->publishes( |
||
| 36 | [ |
||
| 37 | __DIR__ . '/../config/translation.php' => config_path('translation.php'), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 38 | ] |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |