load() public method

public load ( array $configs, ContainerBuilder $container )
$configs array
$container Symfony\Component\DependencyInjection\ContainerBuilder
 private function createContainer($configs)
 {
     $container = new ContainerBuilder();
     $extension = new BeberleiMetricsExtension();
     $extension->load(array($configs), $container);
     // Needed for logger collector
     $container->setDefinition('logger', new Definition('Psr\\Log\\NullLogger'));
     $container->compile();
     return $container;
 }
 private function createContainer($configs, $additionalServices = array())
 {
     $container = new ContainerBuilder();
     $extension = new BeberleiMetricsExtension();
     $extension->load(array($configs), $container);
     // Needed for logger collector
     $container->setDefinition('logger', new Definition('Psr\\Log\\NullLogger'));
     foreach ($additionalServices as $serviceId => $additionalService) {
         $container->set($serviceId, $additionalService);
     }
     $container->compile();
     return $container;
 }