Beispiel #1
0
 /**
  * Dumps an array into the parameters.yml file.
  *
  * @param array $config
  */
 public function dump(array $config, $mode = 0777)
 {
     $values = ['parameters' => array_merge($this->getConfigValues(), $config)];
     $yaml = Yaml::dump($values);
     $this->fileSystem->dumpFile($this->configFile, $yaml, $mode);
     $this->fileSystem->remove(sprintf('%s/%s.php', $this->kernel->getCacheDir(), $this->kernel->getContainerCacheClass()));
 }
Beispiel #2
0
 /**
  * @return \Symfony\Component\DependencyInjection\ContainerInterface
  */
 protected function getContainer()
 {
     return $this->kernel->getContainer();
 }