Skip to content

Commit

Permalink
Fix proxy example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Aug 3, 2021
1 parent b19ebfd commit 21e5cba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
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 21e5cba

Please sign in to comment.