Skip to content

Commit 47a529b

Browse files
20ufxabbuh
authored andcommitted
[Fix][Console] Missing autoloading by Composer
Hello, The good practice is to use the autoloading mechanism provided by composer, except I notice that on this documentation it lacks the essential to make the example work. See http://symfony.com/doc/current/components/console/usage.html#using-console-commands-shortcuts-and-built-in-commands I note that there is the call of the autoload in the other documents, for example: http://symfony.com/doc/current/components/console/single_command_tool.html Regards,
1 parent 0211fce commit 47a529b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/console/usage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ built-in options as well as a couple of built-in commands for the Console compon
1616
<?php
1717
// application.php
1818

19+
require __DIR__.'/vendor/autoload.php';
20+
1921
use Symfony\Component\Console\Application;
2022

2123
$application = new Application();

0 commit comments

Comments
 (0)