/**
* Creates a new Ldap instance.
*
* @param string $adapter The adapter name
* @param array $config The adapter's configuration
*/
public static function create(string
$adapter, array
$config =
[]):
static { if ('ext_ldap' !==
$adapter) { throw new DriverNotFoundException(sprintf('Adapter "%s" not found. Only "ext_ldap" is supported at the moment.',
$adapter));
} return new self(new Adapter($config));
}}