gpslab / pagination-bundle Goto Github PK
View Code? Open in Web Editor NEWPagination bundle
License: MIT License
Pagination bundle
License: MIT License
Use PHP 5.4, 5.5, 5.6, 7.0 is End of life. Need stop using it.
Add ParamConverter for inject a pagination in controller like this:
use GpsLab\Bundle\PaginationBundle\Service\Configuration;
class ArticleController extends Controller
{
private const ARTICLES_PER_PAGE = 30;
public function index(ArticleRepository $rep, Configuration $pagination): Response
{
$pagination->setTotalPages(ceil($rep->getTotalPublished() / self::ARTICLES_PER_PAGE));
// get articles chunk
$offset = ($pagination->getCurrentPage() - 1) * self::ARTICLES_PER_PAGE;
$articles = $rep->getPublished(self::ARTICLES_PER_PAGE, $offset);
return $this->render('AcmeDemoBundle:Article:index.html.twig', [
'articles' => $articles,
'pagination' => $pagination
]);
}
}
Using version ^1.4 for gpslab/pagination-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove doctrine/doctrine-bundle 2.0.7
- Conclusion: don't install doctrine/doctrine-bundle 2.0.7
- twig/twig v2.0.0 conflicts with doctrine/doctrine-bundle[2.0.7].
- twig/twig v2.1.0 conflicts with doctrine/doctrine-bundle[2.0.7].
- twig/twig v2.2.0 conflicts with doctrine/doctrine-bundle[2.0.7].
- twig/twig v2.3.0 conflicts with doctrine/doctrine-bundle[2.0.7].
- twig/twig v2.3.1 conflicts with doctrine/doctrine-bundle[2.0.7].
- twig/twig v2.3.2 conflicts with doctrine/doctrine-bundle[2.0.7].
- Installation request for doctrine/doctrine-bundle (locked at 2.0.7) -> satisfiable by doctrine/doctrine-bundle[2.0.7].
- Conclusion: don't install symfony/http-kernel v5.0.4|install twig/twig v2.0.0|install twig/twig v2.1.0|install twig/twig v2.2.0|install twig/twig v2.3.0|install twig/twig v2.3.1|install twig/twig v2.3.2
- Conclusion: remove symfony/http-kernel v5.0.4|install twig/twig v2.0.0|install twig/twig v2.1.0|install twig/twig v2.2.0|install twig/twig v2.3.0|install twig/twig v2.3.1|install twig/twig v2.3.2
- twig/twig v1.34.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.34.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.34.2 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.34.3 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.34.4 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.35.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.35.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.35.2 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.35.3 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.35.4 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.36.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.37.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.37.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.38.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.38.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.38.2 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.38.3 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.38.4 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.39.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.39.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.40.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.40.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.41.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.42.0 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.42.1 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.42.2 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.42.3 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.42.4 conflicts with symfony/http-kernel[v5.0.4].
- twig/twig v1.42.5 conflicts with symfony/http-kernel[v5.0.4].
- Installation request for symfony/http-kernel (locked at v5.0.4) -> satisfiable by symfony/http-kernel[v5.0.4].
- Installation request for gpslab/pagination-bundle ^1.4 -> satisfiable by gpslab/pagination-bundle[v1.4.0].
- Conclusion: don't install twig/twig v3.0.3|install twig/twig v1.34.0|install twig/twig v1.34.1|install twig/twig v1.34.2|install twig/twig v1.34.3|install twig/twig v1.34.4|install twig/twig v1.35.0|install twig/twig v1.35.1|install twig/twig v1.35.2|install twig/twig v1.35.3|install twig/twig v1.35.4|install twig/twig v1.36.0|install twig/twig v1.37.0|install twig/twig v1.37.1|install twig/twig v1.38.0|install twig/twig v1.38.1|install twig/twig v1.38.2|install twig/twig v1.38.3|install twig/twig v1.38.4|install twig/twig v1.39.0|install twig/twig v1.39.1|install twig/twig v1.40.0|install twig/twig v1.40.1|install twig/twig v1.41.0|install twig/twig v1.42.0|install twig/twig v1.42.1|install twig/twig v1.42.2|install twig/twig v1.42.3|install twig/twig v1.42.4|install twig/twig v1.42.5|install twig/twig v2.0.0|install twig/twig v2.1.0|install twig/twig v2.2.0|install twig/twig v2.3.0|install twig/twig v2.3.1|install twig/twig v2.3.2
- Conclusion: remove twig/twig v3.0.3|install twig/twig v1.34.0|install twig/twig v1.34.1|install twig/twig v1.34.2|install twig/twig v1.34.3|install twig/twig v1.34.4|install twig/twig v1.35.0|install twig/twig v1.35.1|install twig/twig v1.35.2|install twig/twig v1.35.3|install twig/twig v1.35.4|install twig/twig v1.36.0|install twig/twig v1.37.0|install twig/twig v1.37.1|install twig/twig v1.38.0|install twig/twig v1.38.1|install twig/twig v1.38.2|install twig/twig v1.38.3|install twig/twig v1.38.4|install twig/twig v1.39.0|install twig/twig v1.39.1|install twig/twig v1.40.0|install twig/twig v1.40.1|install twig/twig v1.41.0|install twig/twig v1.42.0|install twig/twig v1.42.1|install twig/twig v1.42.2|install twig/twig v1.42.3|install twig/twig v1.42.4|install twig/twig v1.42.5|install twig/twig v2.0.0|install twig/twig v2.1.0|install twig/twig v2.2.0|install twig/twig v2.3.0|install twig/twig v2.3.1|install twig/twig v2.3.2
- gpslab/pagination-bundle v1.4.0 requires twig/twig ^1.34|^2.0 -> satisfiable by twig/twig[v1.34.0, v1.34.1, v1.34.2, v1.34.3, v1.34.4, v1.35.0, v1.35.1, v1.35.2, v1.35.3, v1.35.4, v1.36.0, v1.37.0, v1.37.1, v1.38.0, v1.38.1, v1.38.2, v1.38.3, v1.38.4, v1.39.0, v1.39.1, v1.40.0, v1.40.1, v1.41.0, v1.42.0, v1.42.1, v1.42.2, v1.42.3, v1.42.4, v1.42.5, v2.0.0, v2.1.0, v2.10.0, v2.11.0, v2.11.1, v2.11.2, v2.11.3, v2.12.0, v2.12.1, v2.12.2, v2.12.3, v2.12.4, v2.12.5, v2.2.0, v2.3.0, v2.3.1, v2.3.2, v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.5.0, v2.6.0, v2.6.1, v2.6.2, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.8.0, v2.8.1, v2.9.0].
- Can only install one of: twig/twig[v2.10.0, v3.0.3].
- Can only install one of: twig/twig[v2.11.0, v3.0.3].
- Can only install one of: twig/twig[v2.11.1, v3.0.3].
- Can only install one of: twig/twig[v2.11.2, v3.0.3].
- Can only install one of: twig/twig[v2.11.3, v3.0.3].
- Can only install one of: twig/twig[v2.12.0, v3.0.3].
- Can only install one of: twig/twig[v2.12.1, v3.0.3].
- Can only install one of: twig/twig[v2.12.2, v3.0.3].
- Can only install one of: twig/twig[v2.12.3, v3.0.3].
- Can only install one of: twig/twig[v2.12.4, v3.0.3].
- Can only install one of: twig/twig[v2.12.5, v3.0.3].
- Can only install one of: twig/twig[v2.4.0, v3.0.3].
- Can only install one of: twig/twig[v2.4.1, v3.0.3].
- Can only install one of: twig/twig[v2.4.2, v3.0.3].
- Can only install one of: twig/twig[v2.4.3, v3.0.3].
- Can only install one of: twig/twig[v2.4.4, v3.0.3].
- Can only install one of: twig/twig[v2.4.5, v3.0.3].
- Can only install one of: twig/twig[v2.4.6, v3.0.3].
- Can only install one of: twig/twig[v2.4.7, v3.0.3].
- Can only install one of: twig/twig[v2.4.8, v3.0.3].
- Can only install one of: twig/twig[v2.5.0, v3.0.3].
- Can only install one of: twig/twig[v2.6.0, v3.0.3].
- Can only install one of: twig/twig[v2.6.1, v3.0.3].
- Can only install one of: twig/twig[v2.6.2, v3.0.3].
- Can only install one of: twig/twig[v2.7.0, v3.0.3].
- Can only install one of: twig/twig[v2.7.1, v3.0.3].
- Can only install one of: twig/twig[v2.7.2, v3.0.3].
- Can only install one of: twig/twig[v2.7.3, v3.0.3].
- Can only install one of: twig/twig[v2.7.4, v3.0.3].
- Can only install one of: twig/twig[v2.8.0, v3.0.3].
- Can only install one of: twig/twig[v2.8.1, v3.0.3].
- Can only install one of: twig/twig[v2.9.0, v3.0.3].
- Installation request for twig/twig (locked at v3.0.3) -> satisfiable by twig/twig[v3.0.3].
Installation failed, reverting ./composer.json to its original content.
The spaceless tag in "GpsLabPaginationBundle::pagination.html.twig" at line 2 is deprecated since Twig 2.7, use the spaceless filter instead.
PHPUnit 4.8 is depricated. Need use PHPUnit with namespace.
Cannot autowire argument $pagination of "App\Controller\KanallarController::index()": it references class "GpsLab\Bundle\PaginationBundle\Service\Configuration" but no such service exists.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.