public function process(ContainerBuilder $container)
 {
     $ymlconf = $container->get('config');
     $util = new ArrayUtil();
     $parameters = $util->flatten($ymlconf->getConfig());
     foreach ($parameters as $name => $value) {
         $container->setParameter($name, $value);
     }
 }
Beispiel #2
0
 /**
  * @return array
  */
 public function flatten()
 {
     $util = new ArrayUtil();
     return $util->flatten($this->getConfig());
 }