Platformsh\Cli\Command\DocsCommand::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)
    {
        $url = self::$config->get('service.docs_url');
        $search = $input->getArgument('search');
        if ($search) {
            $query = $this->getSearchQuery($search);
            // @todo provide native or other search options?
            //$url .= '/search?q=' . urlencode($term);
            // Use Google search.
            $hostname = parse_url(self::$config->get('service.docs_url'), PHP_URL_HOST);
            $url = 'https://www.google.com/search?q=' . urlencode('site:' . $hostname . ' ' . $query);
        }
        $this->openUrl($url, $input, $output);
    }