class CreateCommand extends GeneratorCommand

Traits

ConfirmableTrait

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

void
__construct(Filesystem $files)

Create a new controller creator command instance.

prepareVars()

Prepare variables for stubs.

bool|null
handle()

Execute the console command.

buildStubs()

No description

buildStub($stubName, $className)

No description

getExtensionInput()

No description

string
makeDirectory(string $path)

Build the directory for the class if necessary.

getStubPath($stubName)

No description

getDestinationPath($className)

No description

parseString($stubContent)

No description

array
getArguments()

Get the console command arguments.

array
getOptions()

Get the console command options.

Details

in GeneratorCommand at line 52
void __construct(Filesystem $files)

Create a new controller creator command instance.

Parameters

Filesystem $files

Return Value

void

at line 46
protected prepareVars()

Prepare variables for stubs.

return @array

in GeneratorCommand at line 71
bool|null handle()

Execute the console command.

Return Value

bool|null

in GeneratorCommand at line 83
buildStubs()

No description

in GeneratorCommand at line 90
buildStub($stubName, $className)

No description

Parameters

$stubName
$className

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.

Parameters

string $path

Return Value

string

in GeneratorCommand at line 140
protected getStubPath($stubName)

No description

Parameters

$stubName

in GeneratorCommand at line 148
protected getDestinationPath($className)

No description

Parameters

$className

in GeneratorCommand at line 156
protected parseString($stubContent)

No description

Parameters

$stubContent

at line 80
protected array getArguments()

Get the console command arguments.

Return Value

array

at line 93
protected array getOptions()

Get the console command options.

Return Value

array