Skip to content

Commit

Permalink
Make payum service lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Aug 15, 2023
1 parent 20a2244 commit a6d9638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/config/payum.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<defaults public="true" />

<service id="payum.builder" class="Payum\Core\PayumBuilder" shared="false">
<service id="payum.builder" class="Payum\Core\PayumBuilder" public="false">
<call method="setMainRegistry">
<argument type="service" id="payum.static_registry" />
</call>
Expand Down Expand Up @@ -46,7 +46,7 @@
</call>
</service>

<service id="payum" class="Payum\Core\Payum">
<service id="payum" class="Payum\Core\Payum" lazy="true">
<factory service="payum.builder" method="getPayum" />
</service>

Expand Down

0 comments on commit a6d9638

Please sign in to comment.