File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ abstract class HydratorManager implements HydratorManagerContract
1717 /** @var array<string> */
1818 protected $ classHydrators = [];
1919
20- public function paginate (string $ description , LengthAwarePaginator $ paginator ): Resource
20+ public function paginate (string $ description , LengthAwarePaginator $ paginator, ? string $ overrideHydrator = null ): Resource
2121 {
2222 $ resource = (new Resource ())->setHydratorManager ($ this );
23- $ resource ->addEmbeddedResources ($ description , $ paginator ->getCollection ());
23+ $ resource ->addEmbeddedResources ($ description , $ paginator ->getCollection (), $ overrideHydrator );
2424 $ resource ->addPaginationData ([
2525 'page_count ' => $ paginator ->lastPage (),
2626 'page_size ' => $ paginator ->perPage (),
You can’t perform that action at this time.
0 commit comments