Symfony\Component\Console\Tests\CustomDefaultCommandApplication::__construct PHP Method

__construct() public method

Overwrites the constructor in order to set a different default command.
public __construct ( )
    public function __construct()
    {
        parent::__construct();

        $command = new \FooCommand();
        $this->add($command);
        $this->setDefaultCommand($command->getName());
    }
CustomDefaultCommandApplication