Skip to content

Commit b8bdd77

Browse files
committed
Avoid following error:
Autoload error: Recoverable Error: Argument 1 passed to Symfony\Component\Console\Application::add() must be an instance of Symfony\Component\Console\Command\Command, string given, called in /var/www/html/magento2/lib/internal/Magento/Framework/Console/Cli.php on line 27 and defined in /var/www/html/magento2/vendor/symfony/console/Symfony/Component/Console/Application.php on line 384
1 parent b90dafd commit b8bdd77

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Console

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Console/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For example we can introduce new command in module using di.xml:
88
<type name="Magento\Framework\Console\CommandList">
99
<arguments>
1010
<argument name="commands" xsi:type="array">
11-
<item name="test_me" xsi:type="string">Magento\MyModule\Console\TestMeCommand</item>
11+
<item name="test_me" xsi:type="object">Magento\MyModule\Console\TestMeCommand</item>
1212
</argument>
1313
</arguments>
1414
</type>

0 commit comments

Comments
 (0)