setConfigurationFilePath() public method

Sets configuration file path.
public setConfigurationFilePath ( null | string $path )
$path null | string
 /**
  * Runs the current application.
  *
  * @param InputInterface  $input  An Input instance
  * @param OutputInterface $output An Output instance
  *
  * @return integer 0 if everything went fine, or an error code
  */
 public function doRun(InputInterface $input, OutputInterface $output)
 {
     if (is_file($path = $input->getParameterOption(array('--config', '-c')))) {
         $this->configurationLoader->setConfigurationFilePath($path);
     }
     $this->add($this->createCommand($input, $output));
     if ($input->hasParameterOption(array('--config-reference'))) {
         $input = new ArrayInput(array('--config-reference' => true));
     }
     return parent::doRun($input, $output);
 }
Beispiel #2
0
 /**
  * Runs the current application.
  *
  * @param InputInterface  $input  An Input instance
  * @param OutputInterface $output An Output instance
  *
  * @return integer 0 if everything went fine, or an error code
  */
 public function doRun(InputInterface $input, OutputInterface $output)
 {
     // xdebug's default nesting level of 100 is not enough
     if (extension_loaded('xdebug') && false === strpos(ini_get('disable_functions'), 'ini_set')) {
         $oldValue = ini_get('xdebug.max_nesting_level');
         if ($oldValue === false || $oldValue < 256) {
             ini_set('xdebug.max_nesting_level', 256);
         }
     }
     if (is_file($path = $input->getParameterOption(array('--config', '-c')))) {
         $this->configurationLoader->setConfigurationFilePath($path);
     }
     $this->add($this->createCommand($input, $output));
     if ($input->hasParameterOption(array('--config-reference'))) {
         $input = new ArrayInput(array('--config-reference' => true));
     }
     return parent::doRun($input, $output);
 }