<!-- <moduleDir>/etc/<area>/di.xml --> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <!-- ... --> <type name="Vendor\Namespace\Model\SomeClass"> <arguments> <argument name="object" xsi:type="object">Vendor\Namespace\Model\SomeOtherClass</argument> </arguments> </type> </config>