Make sure default is set.

This commit is contained in:
James Cole 2023-10-05 19:09:31 +02:00
parent 7fbed452bb
commit 954bf779eb
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -75,6 +75,7 @@ class Controller extends BaseController
private function getParameters(): ParameterBag
{
$bag = new ParameterBag();
$bag->set('limit', 50);
try {
$page = (int)request()->get('page');
} catch (ContainerExceptionInterface | NotFoundExceptionInterface $e) {