Platformsh\Cli\Command\WelcomeCommand::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->stdErr->writeln("Welcome to " . self::$config->get('service.name') . "!\n");
        // Ensure the user is logged in in this parent command, because the
        // delegated commands below will not have interactive input.
        $this->api()->getClient();
        if ($project = $this->getCurrentProject()) {
            $projectUri = $project->getLink('#ui');
            $this->stdErr->writeln("Project title: <info>{$project->title}</info>");
            $this->stdErr->writeln("Project ID: <info>{$project->id}</info>");
            $this->stdErr->writeln("Project dashboard: <info>{$projectUri}</info>\n");
            // Warn if the project is suspended.
            if ($project->isSuspended()) {
                $messages = [];
                $messages[] = '<comment>This project is suspended.</comment>';
                if ($project->owner === $this->api()->getMyAccount()['uuid']) {
                    $messages[] = '<comment>Update your payment details to re-activate it: ' . self::$config->get('service.accounts_url') . '</comment>';
                }
                $messages[] = '';
                $this->stdErr->writeln($messages);
            }
            // Show the environments.
            $this->runOtherCommand('environments');
            $this->stdErr->writeln("\nYou can list other projects by running <info>" . self::$config->get('application.executable') . " projects</info>\n");
        } else {
            // The project is not known. Show all projects.
            $this->runOtherCommand('projects', ['--refresh' => 0]);
            $this->stdErr->writeln('');
        }
        $this->stdErr->writeln("Manage your SSH keys by running <info>" . self::$config->get('application.executable') . " ssh-keys</info>\n");
        $this->stdErr->writeln("Type <info>" . self::$config->get('application.executable') . " list</info> to see all available commands.");
    }
WelcomeCommand