Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit a475791

Browse files
committed
Properly set the connections name
1 parent d488282 commit a475791

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/AdldapServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,13 @@ protected function addProviders(AdldapInterface $ldap, array $connections = [])
9494
{
9595
// Go through each connection and construct a Provider.
9696
foreach ($connections as $name => $config) {
97+
// Create a new connection with its configured name.
98+
$connection = new $config['connection']($name);
99+
97100
// Create a new provider.
98101
$provider = $this->newProvider(
99102
$config['settings'],
100-
new $config['connection']
103+
$connection
101104
);
102105

103106
// If auto connect is enabled, an attempt will be made to bind to

0 commit comments

Comments
 (0)