GenerateProxyClassCommand example


  protected function getCommandName(InputInterface $input): ?string {
    return 'generate-proxy-class';
  }

  /** * {@inheritdoc} */
  protected function getDefaultCommands(): array {
    // Even though this is a single command, keep the HelpCommand (--help).     $default_commands = parent::getDefaultCommands();
    $default_commands[] = new GenerateProxyClassCommand($this->proxyBuilder);
    return $default_commands;
  }

  /** * {@inheritdoc} * * Overridden so the application doesn't expect the command name as the first * argument. */
  public function getDefinition(): InputDefinition {
    $definition = parent::getDefinition();
    
Home | Imprint | This part of the site doesn't use cookies.