Platformsh\Cli\Command\Integration\IntegrationListCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->validateInput($input);
        $integrations = $this->getSelectedProject()->getIntegrations();
        if (!$integrations) {
            $this->stdErr->writeln('No integrations found');
            return 1;
        }
        $table = new Table($input, $output);
        $header = ['ID', 'Type', 'Summary'];
        $rows = [];
        foreach ($integrations as $integration) {
            $rows[] = [new AdaptiveTableCell($integration->id, ['wrap' => false]), $integration->type, $this->getIntegrationSummary($integration)];
        }
        $table->render($rows, $header);
        $this->stdErr->writeln('');
        $this->stdErr->writeln('View integration details with: <info>' . self::$config->get('application.executable') . ' integration:get [id]</info>');
        $this->stdErr->writeln('');
        $this->stdErr->writeln('Add a new integration with: <info>' . self::$config->get('application.executable') . ' integration:add</info>');
        $this->stdErr->writeln('Delete an integration with: <info>' . self::$config->get('application.executable') . ' integration:delete [id]</info>');
        return 0;
    }