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

Commit da9abb4

Browse files
committed
Remove debug checking
- Removed debug checking. Devs can show errors manually if they wish.
1 parent 7e70595 commit da9abb4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/AdldapServiceProvider.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,7 @@ public function register()
4949
}
5050

5151
// Create a new Adldap instance.
52-
$ad = new Adldap($settings['connection_settings'], new $settings['connection'](), $settings['auto_connect']);
53-
54-
if ($config->get('app.debug')) {
55-
// If the application is set to debug mode, we'll display LDAP error messages.
56-
$ad->getConnection()->showErrors();
57-
}
58-
59-
return $ad;
52+
return new Adldap($settings['connection_settings'], new $settings['connection'](), $settings['auto_connect']);
6053
});
6154

6255
// Bind the Adldap contract to the Adldap object

0 commit comments

Comments
 (0)