소스 검색

[FrameworkBundle] changed console --debug option to --no-debug so commands will run in debug mode by default, as suggested in the SE's console:

    $debug = !$input->hasParameterOption(array('--no-debug', ''));
Kris Wallsmith 14 년 전
부모
커밋
88acb017e3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Console/Application.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Console/Application.php

@@ -38,7 +38,7 @@ class Application extends BaseApplication
 
         $this->getDefinition()->addOption(new InputOption('--shell', '-s', InputOption::VALUE_NONE, 'Launch the shell.'));
         $this->getDefinition()->addOption(new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', 'dev'));
-        $this->getDefinition()->addOption(new InputOption('--debug', '-d', InputOption::VALUE_NONE, 'Whether to run in debug mode.'));
+        $this->getDefinition()->addOption(new InputOption('--no-debug', null, InputOption::VALUE_NONE, 'Switches off debug mode.'));
 
         $this->kernel->boot();