/** * Get the console command arguments. * * @return array */ protected function getArguments() { return [['connection', InputArgument::OPTIONAL, 'The name of connection', $this->queueManager->getDefaultDriver()]]; }
/** * Get the name of the default queue connection. * * @return string * @static */ public static function getDefaultDriver() { return \Illuminate\Queue\QueueManager::getDefaultDriver(); }
public function getConnectionName($connection = null) { return $connection !== null ? $connection : $this->queueManager->getDefaultDriver(); }