1 | <?php |
||
8 | class SetTempUrlKey extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'ovh:set-temp-url-key |
||
16 | {--key= : The key you want to setup on your container} |
||
17 | {--force : Forcibly set a new key on the container}'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Set temp url key on private container, making the use of Storage::temporaryUrl() possible'; |
||
25 | |||
26 | /** |
||
27 | * Create a new command instance. |
||
28 | * |
||
29 | * @return void |
||
|
|||
30 | */ |
||
31 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * Execute the console command. |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function handle() |
||
57 | |||
58 | protected function setContainerKey() |
||
76 | |||
77 | protected function getRandomKey() |
||
81 | |||
82 | protected function checkContainerHasKey() |
||
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.