\MakeThemeCommand
Synopsis
class MakeThemeCommand
extends AbstractMakeCommand
{
- // members
- protected string $name = 'make:theme';
- protected string $description = 'Create a new theme directory structure';
- // Inherited members from SilverstripeCommand
- protected InputInterface $input;
- protected OutputStyle $output;
- protected $signature;
- protected $name;
- protected $description;
- protected int $verbosity;
- protected array $verbosityMap;
- // methods
- public void fire()
- // Inherited methods from AbstractMakeCommand
- public void fire()
- protected bool classOrFileExists()
- protected void writeFile()
- protected void clearCache()
- public string getPhpStub()
- public string getTemplateStub()
- public string getTargetDirectory()
- protected string|array setTargetDirectoriesByString()
- protected array mergeCustomDirectoriesWithDefault()
- public string getTargetFile()
- public string getCommandClass()
- protected string|array|int|float|bool getTargetDirectoryByOptionOrConfig()
- protected string getStubFilePath()
- protected string getConsoleStubPath()
- protected string getMySiteStubPath()
- protected string getCustomStubPath()
- protected bool fileExists()
- protected bool classExists()
- protected void makeDirectory()
- protected string buildClass()
- protected string getNameInput()
- protected array getOptions()
- protected array getArguments()
- // Inherited methods from SilverstripeCommand
- public void __construct()
- protected void configureUsingFluentDefinition()
- protected void specifyParameters()
- public int run()
- protected mixed execute()
- public abstract void fire()
- public int call()
- public int callSilent()
- public string|array argument()
- public string|array option()
- public bool confirm()
- public string ask()
- public string anticipate()
- public string askWithCompletion()
- public string secret()
- public string choice()
- public void table()
- public void info()
- public void line()
- public void comment()
- public void question()
- public void error()
- public void warn()
- protected int parseVerbosity()
- protected void setVerbosity()
- protected array getArguments()
- protected array getOptions()
- public OutputInterface getOutput()
Hierarchy
Extends
Members
protected
- $description — string
- $description
—
string
The console command description. - $input
—
\Symfony\Component\Console\Input\InputInterface
The input interface implementation. - $name — string
- $name
—
string
The console command name. - $output
—
\OutputStyle
The output interface implementation. - $signature
—
string
The name and signature of the console command. - $verbosity
—
int
The default verbosity of output commands. - $verbosityMap
—
array
The mapping between human readable verbosity levels and Symfony's OutputInterface.
Methods
public
Inherited from AbstractMakeCommand
protected
- buildClass() — Replace the class name for the given stub.
- classExists()
- classOrFileExists()
- clearCache()
- fileExists()
- getArguments()
- getConsoleStubPath()
- getCustomStubPath()
- getMySiteStubPath()
- getNameInput() — Get the desired class name from the input.
- getOptions()
- getStubFilePath()
- getTargetDirectoryByOptionOrConfig()
- makeDirectory() — Build the directory for the class if necessary.
- mergeCustomDirectoriesWithDefault()
- setTargetDirectoriesByString()
- writeFile()
public
- fire()
- getCommandClass() — Gets the Classname to generate from the called class like MakeDataObjectCommand => DataObject class MakeFormCommand => Form class.
- getPhpStub()
- getTargetDirectory()
- getTargetFile() — The absolute file path.
- getTemplateStub()
Inherited from SilverstripeCommand
protected
- configureUsingFluentDefinition() — Configure the console command using a fluent definition.
- execute() — Execute the console command.
- getArguments() — Get the console command arguments.
- getOptions() — Get the console command options.
- parseVerbosity() — Get the verbosity level in terms of Symfony's OutputInterface level.
- setVerbosity() — Set the verbosity level.
- specifyParameters() — Specify the arguments and options on the command.
public
- anticipate() — Prompt the user for input with auto completion.
- argument() — Get the value of a command argument.
- ask() — Prompt the user for input.
- askWithCompletion() — Prompt the user for input with auto completion.
- call() — Call another console command.
- callSilent() — Call another console command silently.
- choice() — Give the user a single choice from an array of answers.
- comment() — Write a string as comment output.
- confirm() — Confirm a question with the user.
- error() — Write a string as error output.
- fire()
- getOutput() — Get the output implementation.
- info() — Write a string as information output.
- line() — Write a string as standard output.
- option() — Get the value of a command option.
- question() — Write a string as question output.
- run() — Run the console command.
- secret() — Prompt the user for input but hide the answer from the console.
- table() — Format input to textual table.
- warn() — Write a string as warning output.