sonata-project/exporter

Issues with the deprecated arguments of the generate() method

javiereguiluz opened this issue · 2 comments

I'm getting this deprecation message while upgrading a Symfony app to 2.8:

The hardcoded value you are using for the $referenceType argument of the 
Symfony\Component\Routing\Generator\UrlGenerator::generate method is
deprecated since version 2.8 and will not be supported anymore in 3.0. 
Use the constants defined in the UrlGeneratorInterface instead.

The problem is located here: https://github.com/sonata-project/exporter/blob/master/lib/Exporter/Source/SymfonySitemapSourceIterator.php#L50

Fixed 474be8b

👍