Symfony TbbcMoneyBundle比率\u提供程序:现在不工作

Symfony TbbcMoneyBundle比率\u提供程序:现在不工作,symfony,money-php,Symfony,Money Php,我的工作对象是: 当我启动它时: bin/console tbbc:money:ratio-fetch 我在Crawler.php第565行中看到一个错误: 有人能帮我吗?找到了解决办法 需要在文件\vendor\tbbc\money bundle\tbbc\money bundle\Pair\RatioProvider\GoogleRatioProvider.php中替换 protected function getEndpoint($units, Currency $referenceC

我的工作对象是:

当我启动它时:

bin/console tbbc:money:ratio-fetch
我在Crawler.php第565行中看到一个错误:

有人能帮我吗?

找到了解决办法

需要在文件\vendor\tbbc\money bundle\tbbc\money bundle\Pair\RatioProvider\GoogleRatioProvider.php中替换

protected function getEndpoint($units, Currency $referenceCurrency, Currency $currency)
{
    //https://finance.google.com/finance/converter
    return sprintf(
        'https://finance.google.com/bctzjpnsun/converter?a=%s&from=%s&to=%s',
        $units,
        $referenceCurrency->getCode(),
        $currency->getCode()
    );
}
protected function getEndpoint($units, Currency $referenceCurrency, Currency $currency)
{
    //https://finance.google.com/finance/converter
    return sprintf(
        'https://finance.google.com/bctzjpnsun/converter?a=%s&from=%s&to=%s',
        $units,
        $referenceCurrency->getCode(),
        $currency->getCode()
    );
}