Skip to content

Commit 0093334

Browse files
committed
Return earlier
1 parent eaf244c commit 0093334

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Controller/Component/ApiPaginationComponent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ public function implementedEvents()
4848
*/
4949
public function beforeRender(Event $event)
5050
{
51-
$subject = $event->subject();
52-
5351
if (!$this->isPaginatedApiRequest()) {
5452
return;
5553
}
5654

55+
$subject = $event->subject();
5756
$this->pagingInfo = $this->request->params['paging'][$subject->name];
5857
$config = $this->config();
5958

0 commit comments

Comments
 (0)