Generator
class Generator (View source)
Traits
Methods
void
throwFailsCommand(string $message, string|null $command = null)
Throw fails command
from
ConsoleTrait
__construct(string $base_directory, string $name)
GeneratorCommand constructor
void
filenameIsValide(string|null $filename)
Check if filename is valide
bool
fileExists()
Check if controller exists
string
getPath()
Get file path
bool
exists()
Check if controller exists
bool
write(string $type, array $data = [])
Write file
string
makeStubContent(string $type, array $data = [])
Stub render
void
setName(string $name)
Set writing filename
void
setBaseDirectory(string $base_directory)
Get the base directory
Details
protected void
throwFailsCommand(string $message, string|null $command = null)
Throw fails command
__construct(string $base_directory, string $name)
GeneratorCommand constructor
void
filenameIsValide(string|null $filename)
Check if filename is valide
bool
fileExists()
Check if controller exists
string
getPath()
Get file path
bool
exists()
Check if controller exists
bool
write(string $type, array $data = [])
Write file
string
makeStubContent(string $type, array $data = [])
Stub render
void
setName(string $name)
Set writing filename
void
setBaseDirectory(string $base_directory)
Get the base directory