Skip to content

Commit

Permalink
Helpers are lazy loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 21, 2014
1 parent b88a0d8 commit 0faf6ab
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Controller/Controller.php
Expand Up @@ -676,12 +676,6 @@ public function paginate($object = null) {
}

$this->loadComponent('Paginator');
if (
!in_array('Paginator', $this->helpers) &&
!array_key_exists('Paginator', $this->helpers)
) {
$this->helpers[] = 'Paginator';
}
if (empty($table)) {
throw new \RuntimeException('Unable to locate an object compatible with paginate.');
}
Expand Down

0 comments on commit 0faf6ab

Please sign in to comment.