Back to SetConfigurationCommand class

Method configure

protected void
configure
()
Initialise the command.
Returns
  • void
Since
  • 4.0.0

Method configure - Source code

/**
 * Initialise the command.
 *
 * @return void
 *
 * @since 4.0.0
 */
protected function configure() : void
{
    $this->addArgument('options', InputArgument::REQUIRED | InputArgument::IS_ARRAY, 'All the options you want to set');
    $help = "<info>%command.name%</info> sets the value for a configuration option\n\t\t\t\t\nUsage: <info>php %command.full_name%</info> <option>=<value>";
    $this->setDescription('Set a value for a configuration option');
    $this->setHelp($help);
}