Common & useful classes, resources, extensions. Based on Symfony framework.
Located here: Meritoo\CommonBundle\Service\PaginationService
. Serves pagination.
Uses parameters:
meritoo_common.pagination.template_path
(default value:''
)meritoo_common.pagination.per_page
(default value:null
)meritoo_common.pagination.nearby_current_page_count
(default value:null
)
twig
:Twig\Environment
router
:Symfony\Component\Routing\RouterInterface
Renders pagination using template passed to constructor or via setTemplatePath()
method
Returns information if given number of page is valid/correct, in other words if page with given number exists
Used to modify properties of the service
- Configuration
- Dependency Injection Extension
- Descriptor of application
- Descriptor of bundle
- Descriptors of bundles
- Services:
- Tests
- Translations
- Twig extensions: