File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -218,15 +218,14 @@ public function call($function)
218
218
*/
219
219
public function wrap ($ function , array $ dependencies = NULL )
220
220
{
221
- $ cache = $ this ;
222
- return function () use ($ cache , $ function , $ dependencies ) {
221
+ return function () use ($ function , $ dependencies ) {
223
222
$ key = [$ function , func_get_args ()];
224
223
if (is_array ($ function ) && is_object ($ function [0 ])) {
225
224
$ key [0 ][0 ] = get_class ($ function [0 ]);
226
225
}
227
- $ data = $ cache ->load ($ key );
226
+ $ data = $ this ->load ($ key );
228
227
if ($ data === NULL ) {
229
- $ data = $ cache ->save ($ key , Callback::invokeArgs ($ function , $ key [1 ]), $ dependencies );
228
+ $ data = $ this ->save ($ key , Callback::invokeArgs ($ function , $ key [1 ]), $ dependencies );
230
229
}
231
230
return $ data ;
232
231
};
You can’t perform that action at this time.
0 commit comments