You are here

class DeveloperSyncCommand in Apigee Edge 8

Developer synchronization command class for Drupal Console.

@Drupal\Console\Annotations\DrupalCommand ( extension="apigee_edge", extensionType="module" )

Hierarchy

  • class \Drupal\apigee_edge\Command\CommandBase extends \Drupal\Console\Core\Command\Command uses \Drupal\Console\Core\Command\Shared\CommandTrait

Expanded class hierarchy of DeveloperSyncCommand

1 string reference to 'DeveloperSyncCommand'
console.services.yml in ./console.services.yml
console.services.yml
1 service uses DeveloperSyncCommand
apigee_edge.apigee_edge_sync in ./console.services.yml
Drupal\apigee_edge\Command\DeveloperSyncCommand

File

src/Command/DeveloperSyncCommand.php, line 33

Namespace

Drupal\apigee_edge\Command
View source
class DeveloperSyncCommand extends CommandBase {

  /**
   * {@inheritdoc}
   */
  protected function configure() {
    $this
      ->setName('apigee_edge:sync')
      ->setDescription($this
      ->trans('commands.apigee_edge.sync.description'));
  }

  /**
   * {@inheritdoc}
   */
  protected function execute(InputInterface $input, OutputInterface $output) {
    $this
      ->setupIo($input, $output);
    $this->cliService
      ->sync($this
      ->getIo(), 't');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CommandBase::$cliService protected property The interoperability cli service.
CommandBase::$io protected property The IO interface composed of a commands input and output.
CommandBase::$loggerChannelFactory protected property The logger channel factory.
CommandBase::$logMessageParser protected property The parser object.
CommandBase::getIo public function Gets the IO interface.
CommandBase::setupIo protected function Sets up the IO interface.
CommandBase::setupLogger protected function Sets up the logger service.
CommandBase::__construct public function Constructor with cli service injection.
DeveloperSyncCommand::configure protected function
DeveloperSyncCommand::execute protected function