Skip to content

Commit

Permalink
Avoid following error:
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sivajik34 committed Apr 25, 2015
1 parent b90dafd commit b8bdd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ For example we can introduce new command in module using di.xml:
<type name="Magento\Framework\Console\CommandList">
<arguments>
<argument name="commands" xsi:type="array">
<item name="test_me" xsi:type="string">Magento\MyModule\Console\TestMeCommand</item>
<item name="test_me" xsi:type="object">Magento\MyModule\Console\TestMeCommand</item>
</argument>
</arguments>
</type>
Expand Down

0 comments on commit b8bdd77

Please sign in to comment.