for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace R\Hive\Commands;
class MakeHandlerCommand extends HiveGeneratorCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'hive:handler';
* The console command description.
protected $description = 'Create a new Hive handler class.';
* The type of class being generated.
protected $type = 'Handler';
* Execute the console command.
* @return void
public function fire()
parent::fire();
}
* Get the stub file for the generator.
* @return string
protected function getStub()
return __DIR__.'/stubs/handler.stub';
* Get the default namespace for the class.
* @param string $rootNamespace
protected function getDefaultNamespace($rootNamespace)
return $rootNamespace.'\Lib\Commands\Handlers';
* Get the console command options.
* @return array
protected function getOptions()
return [
//
];