fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed
コード例 #1
0
 public function fire()
 {
     $names = $this->input->getArgument('names');
     $bins = $this->bins($names);
     $this->info('Clean up the recycle bin below.');
     $this->info('----------------------------------');
     parent::fire();
     $this->info('----------------------------------');
     if ($this->confirm('This action can not be undone. Do you want to continue? [yes|no]') == false) {
         $this->error('canceled');
         return null;
     }
     $trashManager = app('xe.trash');
     $trashManager->clean($bins);
 }