Classes/Command/TaskCommandController.php
public function googleSitemapToolCommand($xmlSiteUrl)
    {
        $googleSitemapPing = GeneralUtility::makeInstance(GoogleSitemapService::class, $xmlSiteUrl);
        $httpCode = $googleSitemapPing->sendRequest();

        if ($httpCode === 200) {
            $this->outputLine('success');
        }

        $this->outputLine('error');
    }
public function googleSitemapToolCommand($xmlSiteUrl)
    {
        $googleSitemapPing = GeneralUtility::makeInstance(GoogleSitemapService::class, $xmlSiteUrl);
        $httpCode = $googleSitemapPing->sendRequest();

        if ($httpCode === 200) {
            $this->outputLine('success');
        }

        $this->outputLine('error');
    }
public function googleSitemapToolCommand ( $ xmlSiteUrl ) { $ googleSitemapPing = GeneralUtility :: makeInstance ( GoogleSitemapService :: class , $ xmlSiteUrl ) ; $ httpCode = $ googleSitemapPing -> sendRequest ( ) ; if ( $ httpCode === 200 ) { $ this -> outputLine ( 'success' ) ; } $ this -> outputLine ( 'error' ) ; }
Send a request to google tools api for the sitemap crawling.

@param string $xmlSiteUrl http://www.example.com/sitemap.xml
Send a request to google tools api for the sitemap crawling .