CreateExtension
class CreateExtension extends GeneratorCommand
Traits
Properties
protected Filesystem | $files | The filesystem instance. |
from GeneratorCommand |
protected string | $type | The type of class being generated. |
|
protected array | $stubs | A mapping of stub to generated file. |
|
protected array | $vars | An array of variables to use in stubs. |
from GeneratorCommand |
protected | $destinationPath | from GeneratorCommand | |
protected string | $name | The console command name. |
|
protected string | $description | The console command description. |
Methods
Create a new controller creator command instance.
Prepare variables for stubs.
Build the directory for the class if necessary.
Get the console command arguments.
Get the console command options.
Details
in
GeneratorCommand at line 52
void
__construct(Filesystem $files)
Create a new controller creator command instance.
at line 42
protected
prepareVars()
Prepare variables for stubs.
return @array
in
GeneratorCommand at line 71
bool|null
handle()
Execute the console command.
in
GeneratorCommand at line 83
buildStubs()
No description
in
GeneratorCommand at line 90
buildStub($stubName, $className)
No description
in
GeneratorCommand at line 115
protected
getExtensionInput()
No description
in
GeneratorCommand at line 133
protected string
makeDirectory(string $path)
Build the directory for the class if necessary.
in
GeneratorCommand at line 140
protected
getStubPath($stubName)
No description
in
GeneratorCommand at line 148
protected
getDestinationPath($className)
No description
in
GeneratorCommand at line 156
protected
parseString($stubContent)
No description
at line 70
protected array
getArguments()
Get the console command arguments.
at line 82
protected array
getOptions()
Get the console command options.