Skip to content

Commit 21e5cba

Browse files
authored
Fix proxy example in README.md
1 parent b19ebfd commit 21e5cba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ $proxy = $factory->createProxy(
4646
function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) {
4747
$wrappedObject = new \MyApp\HeavyComplexObject(); // instantiation logic here
4848
$initializer = null; // turning off further lazy initialization
49+
50+
return true; // report success
4951
}
5052
);
5153

0 commit comments

Comments
 (0)