\ProtectSuperSakeCommand
Synopsis
class ProtectSuperSakeCommand
extends SilverstripeCommand
{
- // members
- protected string $name = 'console:protect';
- protected string $description = 'Prevent direct file access by .htaccess and web.config';
- // 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()
- protected void writehtaccess()
- public void writewebconfig()
- // 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
protected
- writehtaccess() — protect the supersake file with htaccess.
public
- fire()
- writewebconfig() — protect the supersake file with web.config.
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.