Platformsh\Cli\Command\WebCommand::execute PHP Method

execute() protected method

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)
    {
        // Attempt to select the appropriate project and environment.
        try {
            $this->validateInput($input);
        } catch (\Exception $e) {
            // Ignore errors.
        }
        $url = self::$config->get('service.accounts_url');
        if ($this->hasSelectedProject()) {
            $url = $this->getSelectedProject()->getLink('#ui');
            if ($this->hasSelectedEnvironment()) {
                $url .= '/environments/' . rawurlencode($this->getSelectedEnvironment()->id);
            }
        }
        $this->openUrl($url, $input, $output);
    }