| 1 | <?php |
||
| 14 | class PublishAdminLTESidebar extends Command |
||
| 15 | { |
||
| 16 | use Installable; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The filesystem instance. |
||
| 20 | * |
||
| 21 | * @var \Illuminate\Filesystem\Filesystem |
||
| 22 | */ |
||
| 23 | protected $files; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The name and signature of the console command. |
||
| 27 | */ |
||
| 28 | protected $signature = 'adminlte-laravel:sidebar {--f|force : Force overwrite of files}'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The console command description. |
||
| 32 | * |
||
| 33 | * @var string |
||
| 34 | */ |
||
| 35 | protected $description = 'Publish Acacha adminlte sidebar view in your project allowing you to customize your project sidebar'; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Force overwrite of files. |
||
| 39 | * |
||
| 40 | * @var bool |
||
| 41 | */ |
||
| 42 | protected $force = false; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Create a new command instance. |
||
| 46 | * |
||
| 47 | * @param \Illuminate\Filesystem\Filesystem $files |
||
| 48 | * |
||
| 49 | * @return void |
||
|
|
|||
| 50 | */ |
||
| 51 | public function __construct(Filesystem $files) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Execute the console command. |
||
| 59 | */ |
||
| 60 | public function handle() |
||
| 65 | |||
| 66 | |||
| 67 | /** |
||
| 68 | * Install views. |
||
| 69 | */ |
||
| 70 | private function publishSidebarView() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Process options before running command. |
||
| 77 | */ |
||
| 78 | private function processOptions() |
||
| 82 | } |
||
| 83 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.