I use \MongoDB\Driver\Manager to manage my connections, but I do not use MongoDB\Client.
I'm trying to list databases given a connection but the method listDatabases is only available via MongoDB\Client.
The documentation states
MongoDB\Client is analogous to the driver’s MongoDB\Driver\Manager class, which it composes.
How do I list databases from an instance of \MongoDB\Driver\Manager ?