Add strict types, add debug info

This commit is contained in:
James Cole
2022-07-16 09:25:10 +02:00
parent 5c3b4d1663
commit 9493046212
38 changed files with 222 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* Controller.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -82,6 +83,11 @@ class Controller extends BaseController
$manager->setSerializer(new JsonApiSerializer($baseUrl));
$objects = $paginator->getCollection();
// the transformer, at this point, needs to collect information that ALL items in the collection
// require, like meta data and stuff like that, and save it for later.
$transformer->collectMetaData($objects);
$resource = new FractalCollection($objects, $transformer, $key);
$resource->setPaginator(new IlluminatePaginatorAdapter($paginator));