option('sync') ? __DIR__.'/stubs/job.stub' : __DIR__.'/stubs/job-queued.stub'; } /** * Get the default namespace for the class. * * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) { return $rootNamespace.'\Jobs'; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['sync', null, InputOption::VALUE_NONE, 'Indicates that job should be synchronous.'], ]; } }