Skip to content

Commit 752821b

Browse files
committed
Move global/api virtualType to app/etc/di.xml
1 parent 8029ce9 commit 752821b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/code/Magento/MessageQueue/etc/di.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
<argument name="lock" xsi:type="object">RefreshLock</argument>
4444
</arguments>
4545
</type>
46-
<!-- @api -->
47-
<virtualType name="shellBackground" type="Magento\Framework\Shell">
48-
<arguments>
49-
<argument name="commandRenderer" xsi:type="object">Magento\Framework\Shell\CommandRendererBackground</argument>
50-
</arguments>
51-
</virtualType>
5246
<type name="Magento\MessageQueue\Model\Cron\ConsumersRunner">
5347
<arguments>
5448
<argument name="shellBackground" xsi:type="object">shellBackground</argument>

app/etc/di.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,4 +2008,10 @@
20082008
</arguments>
20092009
</type>
20102010
<preference for="Magento\Framework\Filter\Input\PurifierInterface" type="Magento\Framework\Filter\Input\Purifier"/>
2011+
<!-- @api -->
2012+
<virtualType name="shellBackground" type="Magento\Framework\Shell">
2013+
<arguments>
2014+
<argument name="commandRenderer" xsi:type="object">Magento\Framework\Shell\CommandRendererBackground</argument>
2015+
</arguments>
2016+
</virtualType>
20112017
</config>

0 commit comments

Comments
 (0)