Skip to content

Commit

Permalink
Remove deprecated config() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hoffmann committed Jul 27, 2017
1 parent d2141c3 commit 02e4685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Component/PaginatorComponent.php
Expand Up @@ -282,7 +282,7 @@ protected function _setPagingParams()
*/
public function config($key = null, $value = null, $merge = true)
{
$return = $this->_paginator->config($key, $value, $merge);
$return = $this->_paginator->setConfig($key, $value, $merge);
if ($return instanceof PaginatorInterface) {
$return = $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Datasource/Paginator.php
Expand Up @@ -278,7 +278,7 @@ public function mergeOptions($params, $settings)
$scope = $settings['scope'];
$params = !empty($params[$scope]) ? (array)$params[$scope] : [];
}
$params = array_intersect_key($params, array_flip($this->config('whitelist')));
$params = array_intersect_key($params, array_flip($this->getConfig('whitelist')));

return array_merge($settings, $params);
}
Expand Down

0 comments on commit 02e4685

Please sign in to comment.