Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Symfony/Bundle/FrameworkBundle/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ class Application extends BaseApplication
/**
* Constructor.
*
* @param KernelInterface $kernel A KernelInterface instance
* @param KernelInterface $kernel A KernelInterface instance
* @param bool $loadDefaultCommands Load all the default commands
*/
public function __construct(KernelInterface $kernel)
public function __construct(KernelInterface $kernel, $loadDefaultCommands = true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would name it registerDefaultCommands to be consistent.

{
$this->kernel = $kernel;
$this->commandsRegistered = !$loadDefaultCommands;

parent::__construct('Symfony', Kernel::VERSION);

Expand Down