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
- class \Drupal\apigee_edge\Command\DeveloperSyncCommand
Expanded class hierarchy of DeveloperSyncCommand
1 string reference to 'DeveloperSyncCommand'
1 service uses DeveloperSyncCommand
File
- src/
Command/ DeveloperSyncCommand.php, line 33
Namespace
Drupal\apigee_edge\CommandView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommandBase:: |
protected | property | The interoperability cli service. | |
CommandBase:: |
protected | property | The IO interface composed of a commands input and output. | |
CommandBase:: |
protected | property | The logger channel factory. | |
CommandBase:: |
protected | property | The parser object. | |
CommandBase:: |
public | function | Gets the IO interface. | |
CommandBase:: |
protected | function | Sets up the IO interface. | |
CommandBase:: |
protected | function | Sets up the logger service. | |
CommandBase:: |
public | function | Constructor with cli service injection. | |
DeveloperSyncCommand:: |
protected | function | ||
DeveloperSyncCommand:: |
protected | function |