Skip to content

Commit 89189b0

Browse files
committed
minor #7330 [Fix][Console] Missing autoloading by Composer (20uf)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7330). Discussion ---------- [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, Commits ------- 47a529b [Fix][Console] Missing autoloading by Composer
2 parents 0211fce + 47a529b commit 89189b0

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)