Cast empty kms provider array to an empty BSON document

XMLWordPrintableJSON

    • 🔵 Done
    • PHP Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      For some KMS providers, all options can be omitted. The authentication is done using the env var or the system.
      https://github.com/mongodb/specifications/blob/master/source/client-side-encryption/client-side-encryption.md#credentialproviders

       

      The approach in the MongoDB ODM is not sufficient because Symfony is not able to dump the empty object instance into the container.

       

      Unable to dump a service container if a parameter is an object or a resource, got "stdClass". 

       

       

            Assignee:
            Jérôme Tamarelle
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: