Skip to content

Commit

Permalink
Made: Third party client service lazy (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
igormukhingmailcom authored and loevgaard committed Nov 14, 2019
1 parent b9c29c1 commit e3ecdc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"setono/doctrine-orm-batcher-bundle": "^0.3.1",
"sylius/sylius": "^1.3",
"symfony/lock": "^4.3",
"symfony/messenger": "^4.3"
"symfony/messenger": "^4.3",
"symfony/proxy-manager-bridge": "^4.3"
},
"require-dev": {
"behat/behat": "^3.4",
Expand Down
4 changes: 3 additions & 1 deletion src/Resources/config/services/http_client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
<service id="setono_sylius_mailchimp.http_client" class="DrewM\MailChimp\MailChimp">
<service id="setono_sylius_mailchimp.http_client"
class="DrewM\MailChimp\MailChimp"
lazy="true">
<argument>%setono_sylius_mailchimp.api_key%</argument>
</service>
</services>
Expand Down

0 comments on commit e3ecdc1

Please sign in to comment.