Back to ExtensionDiscoverInstallCommand 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->addOption('eid', null, InputOption::VALUE_REQUIRED, 'The ID of the extension to discover');
    $help = "<info>%command.name%</info> is used to discover extensions\n\t\t\nYou can provide the following option to the command:\n\t\t\n  --eid: The ID of the extension\n\t\t\n  If you do not provide a ID all discovered extensions are installed.\n\t\t\nUsage:\n\t\t\n  <info>php %command.full_name% --eid=<id_of_the_extension></info>";
    $this->setDescription('Install discovered extensions');
    $this->setHelp($help);
}