Skip to content

Commit

Permalink
Use always PagerfantaExtension from Pagerfanta
Browse files Browse the repository at this point in the history
  • Loading branch information
gseidel committed Apr 11, 2022
1 parent d9233f8 commit 4d9082f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

use BabDev\PagerfantaBundle\Twig\PagerfantaExtension;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Pagerfanta\Twig\Extension\PagerfantaExtension;
use Pagerfanta\View\ViewFactory;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler\PagerfantaBridgePass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand All @@ -26,7 +27,7 @@ final class PagerfantaBridgePassTest extends AbstractCompilerPassTestCase
*/
public function it_creates_aliased_services_and_changes_the_view_factory_class(): void
{
$this->registerService('pagerfanta.twig_extension', class_exists('Pagerfanta\Twig\Extension\PagerfantaExtension') ? 'Pagerfanta\Twig\Extension\PagerfantaExtension' : 'BabDev\PagerfantaBundle\Twig\PagerfantaExtension');
$this->registerService('pagerfanta.twig_extension', PagerfantaExtension::class);
$this->registerService('pagerfanta.view_factory', ViewFactory::class);

$this->setParameter('white_october_pagerfanta.view_factory.class', 'My\ViewFactory');
Expand Down

0 comments on commit 4d9082f

Please sign in to comment.