Author: Konstantin Kudryashov (ever.zet@gmail.com)
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $output->writeln(sprintf('%s version %s', $this->application->getName(), $this->application->getVersion()));
     $output->writeln('');
     $debug = $this->configurationLoader->debugInformation();
     $output->writeln('--- configuration');
     $output->writeln(sprintf('    environment variable (%s): %s', $debug['environment_variable_name'], $debug['environment_variable_content']));
     $output->writeln(sprintf('    configuration file: %s', $debug['configuration_file_path']));
     $output->writeln('');
     $debug = $this->extensionManager->debugInformation();
     $output->writeln('--- extensions');
     $output->writeln(sprintf('    extensions loaded: %s', count($debug['extensions_list']) ? implode(', ', $debug['extensions_list']) : 'none'));
     $output->writeln('');
 }
Ejemplo n.º 2
0
 /**
  * Returns base path.
  *
  * @return string
  */
 private function getBasePath()
 {
     if ($configPath = $this->configurationLoader->getConfigurationFilePath()) {
         return realpath(dirname($configPath));
     }
     return realpath(getcwd());
 }