|
@@ 208-212 (lines=5) @@
|
| 205 |
|
$data = static::getDynamicMethod($method); |
| 206 |
|
$cacheid = sha1(get_called_class() . serialize(func_get_args())); |
| 207 |
|
|
| 208 |
|
if (true === $data['memoize']) { |
| 209 |
|
if ($result = self::getDynamicObjectCacheProvider()->get($cacheid)) { |
| 210 |
|
return $result; |
| 211 |
|
} |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
$result = call_user_func_array($data['factory']->bindTo($this, $this), $parameters); |
| 215 |
|
|
|
@@ 247-251 (lines=5) @@
|
| 244 |
|
if (is_callable($data['factory'])) { |
| 245 |
|
$cacheid = sha1(get_called_class() . serialize(func_get_args())); |
| 246 |
|
|
| 247 |
|
if (true == $data['memoize']) { |
| 248 |
|
if ($result = self::getDynamicObjectCacheProvider()->get($cacheid)) { |
| 249 |
|
return $result; |
| 250 |
|
} |
| 251 |
|
} |
| 252 |
|
|
| 253 |
|
$result = call_user_func($data['factory']->bindTo($this, $this)); |
| 254 |
|
|