You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the cache.factory and the cache.namespace services are protected closures, which return closures, which then return a cache instance. Change these services to be just protected closures, which return a cache instance to reduce complexity and bring it in line with conventions.
Before:
$app['caches'] = $app->extend('caches', function ($caches) use ($app) {
$caches['foo'] = $app['cache.namespace']('foobar');
return$caches;
});
After:
$app['caches'] = $app->extend('caches', function ($caches) use ($app) {
$caches['foo'] = function () use ($app) {
return$app['cache.namespace']('foobar');
};
return$caches;
});
The text was updated successfully, but these errors were encountered:
Currently the
cache.factory
and thecache.namespace
services are protected closures, which return closures, which then return a cache instance. Change these services to be just protected closures, which return a cache instance to reduce complexity and bring it in line with conventions.Before:
After:
The text was updated successfully, but these errors were encountered: