File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,13 @@ public function implementedEvents()
4949 */
5050 public function beforeRender (Event $ event )
5151 {
52+ $ subject = $ event ->subject ();
53+
5254 if (!$ this ->isPaginatedApiRequest ()) {
5355 return ;
5456 }
5557
56- $ this ->pagingInfo = $ this ->request ->params ['paging ' ][$ event -> subject () ->name ];
58+ $ this ->pagingInfo = $ this ->request ->params ['paging ' ][$ subject ->name ];
5759 $ config = $ this ->config ();
5860
5961 if (!empty ($ config ['aliases ' ])) {
@@ -64,8 +66,8 @@ public function beforeRender(Event $event)
6466 $ this ->setVisibility ();
6567 }
6668
67- $ event -> subject () ->set ($ config ['key ' ], $ this ->pagingInfo );
68- $ event -> subject () ->viewVars ['_serialize ' ][] = $ config ['key ' ];
69+ $ subject ->set ($ config ['key ' ], $ this ->pagingInfo );
70+ $ subject ->viewVars ['_serialize ' ][] = $ config ['key ' ];
6971 }
7072
7173 /**
You can’t perform that action at this time.
0 commit comments