[Console] added a missing method (closes #3043)

This commit is contained in:
Fabien Potencier 2012-01-06 04:12:25 +01:00
parent 4c6c22166a
commit 0492290a3b
2 changed files with 11 additions and 1 deletions

View File

@ -67,6 +67,16 @@ class Command
}
}
/**
* Ignores validation errors.
*
* This is mainly useful for the help command.
*/
public function ignoreValidationErrors()
{
$this->ignoreValidationErrors = true;
}
/**
* Sets the application instance for this command.
*

View File

@ -32,7 +32,7 @@ class HelpCommand extends Command
*/
protected function configure()
{
$this->ignoreValidationErrors = true;
$this->ignoreValidationErrors();
$this
->setDefinition(array(