Skip to content

Commit b38f401

Browse files
authored
Merge pull request #714 from vjik/patch-1
Fix proxy example in `README.md` to confirm successful initialization
2 parents b19ebfd + 21e5cba commit b38f401

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
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)