/**
  * @inheritdoc
  */
 public function build(ContainerBuilder $container)
 {
     parent::build($container);
     /** @var AlamedaEncryptionExtension $extension */
     $extension = $container->getExtension(self::SERVICE_NS);
     $encryptionConfiguration = new EncryptionConfiguration();
     if (extension_loaded('gnupg')) {
         $encryptionConfiguration->addConfiguration(new GnuPGConfiguration());
     }
     $extension->setEncryptionConfiguration($encryptionConfiguration);
 }