Back to ExtensionRemoveCommand 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('extensionId', InputArgument::REQUIRED, 'ID of extension to be removed (run extension:list command to check)');
    $help = "<info>%command.name%</info> is used to uninstall extensions.\n\t\t\nThe command requires one argument, the ID of the extension to uninstall.\n\t\t\nYou may find this ID by running the <info>extension:list</info> command.\n\t\t\nUsage: <info>php %command.full_name% <extension_id></info>";
    $this->setDescription('Remove an extension');
    $this->setHelp($help);
}