Skip to content

Commit

Permalink
Fix document for Weaver
Browse files Browse the repository at this point in the history
- Weaver::newInstance() doesn't have 3rd argument
  • Loading branch information
kawahara committed May 29, 2021
1 parent b96658f commit 23a5a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $pointcut = new Pointcut(
[new WeekendBlocker()]
);
$bind = (new Bind)->bind(RealBillingService::class, [$pointcut]);
$billing = (new Weaver($bind, $tmpDir))->newInstance(RealBillingService::class, [], $bind);
$billing = (new Weaver($bind, $tmpDir))->newInstance(RealBillingService::class, []);

try {
echo $billing->chargeOrder();
Expand Down

0 comments on commit 23a5a2c

Please sign in to comment.