Skip to content

Commit

Permalink
Allow use with Pagerfanta 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Mar 19, 2021
1 parent 0bb5ab5 commit 7478405
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ jobs:
composer-flags: --ignore-platform-req=php
-
php: 7.4
pagerfanta-bundle: ^2.5
symfony: ^4.4
twig: ^2.12
-
php: 7.4
pagerfanta-bundle: ^3.0
symfony: ^5.2
twig: ^3.0

Expand All @@ -59,6 +61,11 @@ jobs:
composer config extra.symfony.require "${{ matrix.symfony }}"
(cd src/Component && composer config extra.symfony.require "${{ matrix.symfony }}")
-
name: Restrict babdev/pagerfanta-bundle version
if: matrix.pagerfanta-bundle != ''
run: composer require "babdev/pagerfanta-bundle:${{ matrix.pagerfanta-bundle }}" --no-update --no-scripts

-
name: Restrict twig/twig version
if: matrix.twig != ''
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"require": {
"php": "^7.4 || ^8.0",
"babdev/pagerfanta-bundle": "^2.5",
"babdev/pagerfanta-bundle": "^2.5 || ^3.0",
"doctrine/collections": "^1.6",
"doctrine/doctrine-bundle": "^1.12 || ^2.0",
"doctrine/event-manager": "^1.1",
Expand Down Expand Up @@ -56,6 +56,7 @@
"doctrine/orm": "^2.5",
"lchrusciel/api-test-case": "^5.0",
"matthiasnoback/symfony-dependency-injection-test": "^4.2.1",
"pagerfanta/pagerfanta": "^2.4 || ^3.0",
"pamil/phpspec-skip-example-extension": "^4.2",
"phpspec/phpspec": "^7.0",
"phpspec/prophecy-phpunit": "^2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Sylius\Bundle\ResourceBundle\Tests\DependencyInjection\Compiler;

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 Down
2 changes: 1 addition & 1 deletion src/Component/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"doctrine/collections": "^1.6",
"doctrine/inflector": "^1.4 || ^2.0",
"gedmo/doctrine-extensions": "^2.4",
"pagerfanta/core": "^2.4",
"pagerfanta/core": "^2.4 || ^3.0",
"symfony/event-dispatcher": "^4.4 || ^5.2",
"symfony/property-access": "^4.4 || ^5.2",
"winzou/state-machine": "^0.4"
Expand Down

0 comments on commit 7478405

Please sign in to comment.