Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/DB/PingCommand.php
Show All 16 Lines | class PingCommand extends Command | ||||
/** | /** | ||||
* The console command description. | * The console command description. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $description = 'Ping the database [and wait for it to respond]'; | protected $description = 'Ping the database [and wait for it to respond]'; | ||||
/** | /** | ||||
* Create a new command instance. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function __construct() | |||||
{ | |||||
parent::__construct(); | |||||
} | |||||
/** | |||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
if ($this->option('wait')) { | if ($this->option('wait')) { | ||||
while (true) { | while (true) { | ||||
Show All 20 Lines |