Skip to content

Commit

Permalink
Added support for latest exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and greg0ire committed Jan 20, 2019
1 parent 12ba9d8 commit f986d8b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"require": {
"php": "^7.1",
"sonata-project/exporter": "^1.8",
"sonata-project/exporter": "^1.11 || ^2.0",
"symfony/config": "^2.8 || ^3.2 || ^4.0",
"symfony/dependency-injection": "^2.8 || ^3.2 || ^4.0",
"symfony/form": "^2.8 || ^3.2 || ^4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Command/SitemapGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Sonata\SeoBundle\Command;

use Exporter\Handler;
use Exporter\Writer\SitemapWriter;
use Sonata\Exporter\Handler;
use Sonata\Exporter\Writer\SitemapWriter;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="sonata.seo.exporter.database_source_iterator.class">Exporter\Source\DoctrineDBALConnectionSourceIterator</parameter>
<parameter key="sonata.seo.exporter.sitemap_source_iterator.class">Exporter\Source\SymfonySitemapSourceIterator</parameter>
<parameter key="sonata.seo.exporter.database_source_iterator.class">Sonata\Exporter\Source\DoctrineDBALConnectionSourceIterator</parameter>
<parameter key="sonata.seo.exporter.sitemap_source_iterator.class">Sonata\Exporter\Source\SymfonySitemapSourceIterator</parameter>
<parameter key="sonata.seo.page.default.class">Sonata\SeoBundle\Seo\SeoPage</parameter>
<parameter key="sonata.seo.twig.extension.class">Sonata\SeoBundle\Twig\Extension\SeoExtension</parameter>
<parameter key="sonata.seo.sitemap.manager.class">Sonata\SeoBundle\Sitemap\SourceManager</parameter>
Expand Down
4 changes: 2 additions & 2 deletions src/Sitemap/SourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Sonata\SeoBundle\Sitemap;

use Exporter\Source\ChainSourceIterator;
use Exporter\Source\SourceIteratorInterface;
use Sonata\Exporter\Source\ChainSourceIterator;
use Sonata\Exporter\Source\SourceIteratorInterface;

/**
* Manager several chain source iterator grouped.
Expand Down

0 comments on commit f986d8b

Please sign in to comment.