1 | <?php |
||
9 | class Install extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'backpack:base:install'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Require dev packages and publish files for Backpack\Base to work'; |
||
24 | |||
25 | /** |
||
26 | * Create a new command instance. |
||
27 | * |
||
28 | * @return void |
||
|
|||
29 | */ |
||
30 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Execute the console command. |
||
37 | * |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function handle() |
||
52 | |||
53 | /** |
||
54 | * Run a SSH command. |
||
55 | * |
||
56 | * @param string $command The SSH command that needs to be run |
||
57 | * @param bool $beforeNotice Information for the user before the command is run |
||
58 | * @param bool $afterNotice Information for the user after the command is run |
||
59 | * |
||
60 | * @return mixed Command-line output |
||
61 | */ |
||
62 | public function executeProcess($command, $beforeNotice = false, $afterNotice = false) |
||
88 | } |
||
89 |
Adding a
@return
annotation 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.