Skip to content

Commit

Permalink
Merge branch 'use-proxies-for-console-commands' into 'develop'
Browse files Browse the repository at this point in the history
Use proxies for console command dependencies

See merge request techdivision-public/m2-content-provisioning!44
  • Loading branch information
sippsolutions committed May 4, 2023
2 parents 36a694f + 5bf5f13 commit 1d74b18
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,29 @@
</argument>
</arguments>
</type>

<type name="Firegento\ContentProvisioning\Model\Console\AddBlockCommand">
<arguments>
<argument name="applyBlockEntry" xsi:type="object">Firegento\ContentProvisioning\Model\Command\ApplyBlockEntry\Proxy</argument>
</arguments>
</type>
<type name="Firegento\ContentProvisioning\Model\Console\AddPageCommand">
<arguments>
<argument name="applyPageEntry" xsi:type="object">Firegento\ContentProvisioning\Model\Command\ApplyPageEntry\Proxy</argument>
</arguments>
</type>
<type name="Firegento\ContentProvisioning\Model\Console\BlockListCommand">
<arguments>
<argument name="getAllBlockEntries" xsi:type="object">Firegento\ContentProvisioning\Model\Query\GetBlockEntryList\Proxy</argument>
<argument name="getBlocksByBlockEntry" xsi:type="object">Firegento\ContentProvisioning\Model\Query\GetBlocksByBlockEntry\Proxy</argument>
</arguments>
</type>
<type name="Firegento\ContentProvisioning\Model\Console\BlockResetCommand">
<arguments>
<argument name="getBlockEntryList" xsi:type="object">Firegento\ContentProvisioning\Model\Query\GetBlockEntryList\Proxy</argument>
<argument name="applyBlockEntry" xsi:type="object">Firegento\ContentProvisioning\Model\Command\ApplyBlockEntry\Proxy</argument>
<argument name="applyMediaFiles" xsi:type="object">Firegento\ContentProvisioning\Model\Command\ApplyMediaFiles\Proxy</argument>
</arguments>
</type>
<type name="Firegento\ContentProvisioning\Model\Console\PageListCommand">
<arguments>
<argument name="getAllContentEntries" xsi:type="object">Firegento\ContentProvisioning\Model\Query\GetPageEntryList\Proxy</argument>
Expand Down

0 comments on commit 1d74b18

Please sign in to comment.