I'm following object manager argument replacement tutorial. One of the possible di.xml looks like
<type name="Pulsestorm\TutorialObjectManagerArguments\Model\Example">
<arguments>
<argument name="scaler1" xsi:type="string">bar</argument>
</arguments>
</type>
Which means in Model Example
's class's constructor, replace (whatever old) value of argument $scaler1
with bar
.
Whereas for commands it looks like
<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="testbedCommand" xsi:type="object">Pulsestorm\TutorialObjectManagerArguments\Command\Testbed</item>
</argument>
</arguments>
</type>
Which says add 1 new item(command) in CommandList
's constructor argument commands
(which is of array type).
I don't see use of the name testbedCommand
anywhere in the module.
What will be it's usage ? Should it be unique?