Skip to content

Commit

Permalink
Return array for cached modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Dec 20, 2014
1 parent 9fb5418 commit ba0c952
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Pingpong/Modules/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ public function getCached()
{
return $this->app['cache']->remember($this->config('cache.key'), $this->config('cache.lifetime'), function ()
{
$modules = $this->scan();

return $modules;
return $this->toCollection()->toArray();
});
}

Expand Down

0 comments on commit ba0c952

Please sign in to comment.