/**
  * @param array|null $config
  * @return ContainerBuilder
  */
 private function buildContainer(array $config = null)
 {
     $extension = new SmsDeliveryExtension();
     $container = new ContainerBuilder();
     $container->addCompilerPass(new TransportCompilerPass());
     $container->addCompilerPass(new SpoolCompilerPass());
     $extension->load(array((array) $config), $container);
     $container->compile();
     return $container;
 }
 /**
  * @param array|null $interfaceConfig
  * @param array|null $webSmsConfig
  * @return ContainerBuilder
  */
 protected function buildContainer(array $interfaceConfig = null, array $webSmsConfig = null)
 {
     $interfaceExtension = new SmsDeliveryExtension();
     $webSmsExtension = new WebSmsBridgeExtension();
     $container = new ContainerBuilder();
     $container->addCompilerPass(new TransportCompilerPass());
     $interfaceExtension->load(array((array) $interfaceConfig), $container);
     $webSmsExtension->load(array((array) $webSmsConfig), $container);
     $container->compile();
     return $container;
 }