diff --git a/src/Controller/Component/ApiPaginationComponent.php b/src/Controller/Component/ApiPaginationComponent.php index e7312d2..98e1a11 100644 --- a/src/Controller/Component/ApiPaginationComponent.php +++ b/src/Controller/Component/ApiPaginationComponent.php @@ -46,12 +46,13 @@ public function beforeRender(Event $event) } $this->paging = $controller->request->params['paging'][$controller->name]; + $config = $this->config(); - if (!empty($this->config('aliases'))) { + if (!empty($config['aliases'])) { $this->setAliases(); } - if (!empty($this->config('visible'))) { + if (!empty($config['visible'])) { $this->setVisibility(); }