getPassesConfigurations() public static method

public static getPassesConfigurations ( ) : Symfony\Component\Config\Definition\Builder\NodeDefinition[]
return Symfony\Component\Config\Definition\Builder\NodeDefinition[]
Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $analyzerConfiguration = Analyzer\Factory::getPassesConfigurations();
     $configuration = new Configuration([], $analyzerConfiguration);
     $configTree = $configuration->getConfigTreeBuilder($analyzerConfiguration)->buildTree();
     $dumper = new YamlReferenceDumper();
     $output->writeln($dumper->dumpNode($configTree));
 }
Esempio n. 2
0
 /**
  * @param string $configFile
  * @param string $configurationDirectory
  *
  * @return Configuration
  */
 protected function loadConfiguration($configFile, $configurationDirectory)
 {
     $loader = new ConfigurationLoader(new FileLocator([getcwd(), $configurationDirectory]));
     return new Configuration($loader->load($configFile), Analyzer\Factory::getPassesConfigurations());
 }