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

Commit 19783bd

Browse files
committed
Use Config in bind function
1 parent b10361f commit 19783bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AdldapServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ public function boot()
3434
*/
3535
public function register()
3636
{
37-
$config = $this->app['config']->get('adldap');
38-
3937
// Bind the Adldap instance to the IoC
40-
$this->app->bind('adldap', function() use ($config)
38+
$this->app->bind('adldap', function()
4139
{
40+
$config = $this->app['config']->get('adldap');
41+
4242
// Verify configuration
4343
if(is_null($config)) {
4444
$message = 'Adldap configuration could not be found. Try re-publishing using `php artisan vendor:publish`.';

0 commit comments

Comments
 (0)