Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 4 additions & 27 deletions Commands/stubs/command.stub
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ use Symfony\Component\Console\Input\InputArgument;
class $CLASS$ extends Command {

/**
* The console command name.
* The console command signature.
*
*
* @var string
*/
protected $name = '$COMMAND_NAME$';
protected $signature = '$COMMAND_NAME$ {requiredArg} {optionalArg?} {optionalArgWithVal=default} {--option}';

/**
* The console command description.
Expand All @@ -35,33 +36,9 @@ class $CLASS$ extends Command {
*
* @return mixed
*/
public function fire()
public function handle()
{
//
}

/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [
['example', InputArgument::REQUIRED, 'An example argument.'],
];
}

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
];
}

}