Skip to content

Commit

Permalink
Merge pull request #176 from kawahara/fix-doc-for-weaver
Browse files Browse the repository at this point in the history
Fix document for Weaver
  • Loading branch information
koriym authored May 29, 2021
2 parents b96658f + 23a5a2c commit 1390df2
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 1390df2

Please sign in to comment.