Getting collection calls access_restriction which is not properly cached.

Remove use of cache in AccessRestriction and use instance memory cache instead.
Beware static keyword declares variable static for the class, not the instance
This commit is contained in:
Benoît Burnichon
2016-01-27 17:16:49 +01:00
parent ac4f15c5b5
commit beda5d3820
6 changed files with 111 additions and 73 deletions

View File

@@ -335,7 +335,7 @@ class appbox extends base
/**
* @return AccessRestriction
*/
private function getAccessRestriction()
public function getAccessRestriction()
{
return $this->app['conf.restrictions'];
}