Skip to content

Commit

Permalink
[Console] added a missing method (closes #3043)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 6, 2012
1 parent 4c6c221 commit 0492290
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/Symfony/Component/Console/Command/Command.php
Expand Up @@ -67,6 +67,16 @@ public function __construct($name = null)
}
}

/**
* Ignores validation errors.
*
* This is mainly useful for the help command.
*/
public function ignoreValidationErrors()
{
$this->ignoreValidationErrors = true;
}

/**
* Sets the application instance for this command.
*
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Command/HelpCommand.php
Expand Up @@ -32,7 +32,7 @@ class HelpCommand extends Command
*/
protected function configure()
{
$this->ignoreValidationErrors = true;
$this->ignoreValidationErrors();

$this
->setDefinition(array(
Expand Down

0 comments on commit 0492290

Please sign in to comment.