Chris@0: proxyBuilder = $proxy_builder; Chris@0: Chris@0: parent::__construct(); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function getCommandName(InputInterface $input) { Chris@0: return 'generate-proxy-class'; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: protected function getDefaultCommands() { Chris@0: // Even though this is a single command, keep the HelpCommand (--help). Chris@0: $default_commands = parent::getDefaultCommands(); Chris@0: $default_commands[] = new GenerateProxyClassCommand($this->proxyBuilder); Chris@0: return $default_commands; Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: * Chris@0: * Overridden so the application doesn't expect the command name as the first Chris@0: * argument. Chris@0: */ Chris@0: public function getDefinition() { Chris@0: $definition = parent::getDefinition(); Chris@0: // Clears the normal first argument (the command name). Chris@0: $definition->setArguments(); Chris@0: return $definition; Chris@0: } Chris@0: Chris@0: }