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

Commit 71f515e

Browse files
committed
Fix configuration verification
1 parent a958116 commit 71f515e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/AdldapServiceProvider.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ public function register()
3232
{
3333
$config = $this->app['config']->get('adldap');
3434

35-
// Verify configuration
36-
if(is_null($config)) {
37-
$message = 'Adldap configuration could not be found. Try re-publishing using `php artisan vendor:publish`.';
38-
39-
throw new ConfigurationMissingException($message);
40-
}
41-
4235
// Bind the Adldap instance to the IoC
4336
$this->app->bind('adldap', function() use ($config)
4437
{
38+
// Verify configuration
39+
if(is_null($config)) {
40+
$message = 'Adldap configuration could not be found. Try re-publishing using `php artisan vendor:publish`.';
41+
42+
throw new ConfigurationMissingException($message);
43+
}
44+
4545
return new Adldap($config['connection_settings'], null, $config['auto_connect']);
4646
});
4747
}

0 commit comments

Comments
 (0)