GenerateSitemapCommand
class GenerateSitemapCommand extends Command (View source)
Constants
RETURN_CODE_ON_FAILURE |
The return code we should return when an exception is thrown while running the command. |
ALLOWASROOT_OPTION |
The name of the CLI option that allows running CLI commands as root without confirmation. |
ALLOWASROOT_ENV |
The name of the environment variable that allows running CLI commands as root without confirmation. |
Properties
protected bool | $canRunAsRoot | Can this command be executed as root? If set to false, the command can be executed if one of these conditions is satisfied: - the users is not root - the --allow-as-root option is set - the C5_CLI_ALLOW_AS_ROOT environment variable is set - the console is interactive and the user explicitly confirm the operation. | from Command |
Methods
$this
setCanRunAsRoot(bool $canRunAsRoot)
Allow/disallow running this command as root without confirmation.
from Command
configure()
No description
execute(InputInterface $input, OutputInterface $output)
No description
Details
protected
initialize(InputInterface $input, OutputInterface $output)
{@inheritdoc}
protected $this
setCanRunAsRoot(bool $canRunAsRoot)
Allow/disallow running this command as root without confirmation.