Skip to content

Commit

Permalink
bug #6822 Adjust Application use statement (kvdnberg)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6822).

Discussion
----------

Adjust Application use statement

The code example assumes the use of the Console Application (no kernel parameter) but the use statement is for the Frameworkbundle Console Application, which requires the kernel parameter. This is confusing, basically the example cannot work as it is.

Commits
-------

38d8f15 Adjust Application use statement
  • Loading branch information
weaverryan committed Aug 20, 2016
2 parents edcfe8d + 38d8f15 commit af77f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ console::
namespace Tests\AppBundle\Command;

use AppBundle\Command\CreateUserCommand;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;

class CreateUserCommandTest extends \PHPUnit_Framework_TestCase
Expand Down

0 comments on commit af77f5e

Please sign in to comment.