protected function fetchDataFromRemote(Filesystem $fileSytem, ContainerBuilder $container)
    {
        $curl = new Curl();
        $curl->setUrl("https://mp-expansion.com/api/maniaplanet/toZto");
        $curl->run();
        if ($curl->getCurlInfo()['http_code'] == 200) {
            $fileSytem->put(self::MAPPINGS_FILE, $curl->getResponse());
        } else {
            echo "Can't fetch title mappings from expansion website!\n";
        }
    }
protected function fetchDataFromRemote(Filesystem $fileSytem, ContainerBuilder $container)
    {
        $curl = new Curl();
        $curl->setUrl("https://mp-expansion.com/api/maniaplanet/toZto");
        $curl->run();
        if ($curl->getCurlInfo()['http_code'] == 200) {
            $fileSytem->put(self::MAPPINGS_FILE, $curl->getResponse());
        } else {
            echo "Can't fetch title mappings from expansion website!\n";
        }
    }
protected function fetchDataFromRemote ( Filesystem $ fileSytem , ContainerBuilder $ container ) { $ curl = new Curl ( ) ; $ curl -> setUrl ( "https://mp-expansion.com/api/maniaplanet/toZto" ) ; $ curl -> run ( ) ; if ( $ curl -> getCurlInfo ( ) [ 'http_code' ] == 200 ) { $ fileSytem -> put ( self :: MAPPINGS_FILE , $ curl -> getResponse ( ) ) ; } else { echo "Can't fetch title mappings from expansion website!\n" ; } }
Fetch title information from eXp api.

@param Filesystem       $fileSytem
@param ContainerBuilder $container

@throws \Exception
Fetch title information from eXp api .