Skip to content

Instantly share code, notes, and snippets.

@yobud
Created October 3, 2011 07:47
Show Gist options
  • Save yobud/1258642 to your computer and use it in GitHub Desktop.
Save yobud/1258642 to your computer and use it in GitHub Desktop.
public function load(array $configs, ContainerBuilder $container)
{
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$config = array();
foreach ($configs as $subConfig) {
$config = array_merge($config, $subConfig);
}
$container->setParameter('xxx_yyy', $config);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment