Ejemplo n.º 1
0
 public function visitConfigCollection(ConfigCollectionBinding $configCollection)
 {
     $elements = $configCollection->getElements();
     foreach ($elements as $name => $element) {
         if ($element instanceof ConfigItemBinding) {
             $elements[$name] = $this->visitConfigItem($element);
         }
     }
     $optimized = new ConfigCollectionBinding($configCollection->getName(), $configCollection->getSource(), $elements);
     $this->bindings->put($optimized);
 }