AshleyDawson / SimplePaginationBundle

Simple pagination bundle for Symfony 2
MIT License
4 stars 2 forks source link

doesn't work with symfony3 #1

Open compworkmail opened 8 years ago

compworkmail commented 8 years ago

Hello. I have tried according to your readme file install your bundle, but it gives me an error in symfony3:

Fatal error: Uncaught exception 'Symfony\Component\Config\Definition\Exception\InvalidDefinitionException' with message '->cannotBeEmpty() is not applicable to NumericNodeDefinition.' in /home/vaha/www/feastme.net/src/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php:71 Stack trace: #0 /home/vaha/www/feastme.net/src/vendor/ashleydawson/simple-pagination-bundle/AshleyDawson/SimplePaginationBundle/DependencyInjection/Configuration.php(29): Symfony\Component\Config\Definition\Builder\NumericNodeDefinition->cannotBeEmpty() #1 /home/vaha/www/feastme.net/src/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Processor.php(50): AshleyDawson\SimplePaginationBundle\DependencyInjection\Configuration->getConfigTreeBuilder() #2 /home/vaha/www/feastme.net/src/vendor/ashleydawson/simple-pagination-bundle/AshleyDawson/SimplePaginationBundle/DependencyInjection/AshleyDawsonSimplePaginationExtension.php(27): Symfony\Component\Config\Definition\Processor->processConfiguration(Objec in /home/vaha/www/feastme.net/src/vendor/symfony/symfony/src/Symfony/Component/Config/Definition/Builder/NumericNodeDefinition.php on line 71

AdamHornik commented 8 years ago

Hello, I had the same issue with Symfony 3. I made a fork of this bundle, where I fixed this issue. You could check here: https://github.com/nikdyvice/SimplePaginationBundle

j0k3r commented 7 years ago

Since https://github.com/AshleyDawson/SimplePaginationBundle/pull/2 it works fine.