Skip to content

Commit

Permalink
Enabled validation by default in the CompileCommand. Changed --valida…
Browse files Browse the repository at this point in the history
…te to --no-validate.
  • Loading branch information
AlexeyKupershtokh committed Jul 31, 2015
1 parent 37a18a8 commit 5e2827a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Command/CompileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function configure()
$this->addArgument('service', InputArgument::REQUIRED, 'Service name');

$this->addOption('server', null, InputOption::VALUE_NONE, 'Generate server classes');
$this->addOption('validate', null, InputOption::VALUE_NONE, 'Generate PHP validator methods');
$this->addOption('no-validate', null, InputOption::VALUE_NONE, 'Don\'t generate PHP validator methods');
$this->addOption('namespace', null, InputOption::VALUE_REQUIRED, 'Namespace prefix');
$this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Thrift exec path');

Expand Down Expand Up @@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$compiler->setNamespacePrefix($input->getOption('namespace'));
}

if ($input->getOption('validate')) {
if (!$input->getOption('no-validate')) {
$compiler->addValidate();
}

Expand Down

0 comments on commit 5e2827a

Please sign in to comment.