Skip to content

Commit

Permalink
Merge pull request #714 from vjik/patch-1
Browse files Browse the repository at this point in the history
Fix proxy example in `README.md` to confirm successful initialization
  • Loading branch information
Ocramius authored Aug 3, 2021
2 parents b19ebfd + 21e5cba commit b38f401
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ $proxy = $factory->createProxy(
function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) {
$wrappedObject = new \MyApp\HeavyComplexObject(); // instantiation logic here
$initializer = null; // turning off further lazy initialization

return true; // report success
}
);

Expand Down

0 comments on commit b38f401

Please sign in to comment.