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

Commit a691901

Browse files
committed
Use application contract for closure
1 parent e0b2d3e commit a691901

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AdldapServiceProvider.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Adldap\Adldap;
66
use Adldap\Laravel\Exceptions\ConfigurationMissingException;
7+
use Illuminate\Contracts\Foundation\Application;
78
use Illuminate\Support\ServiceProvider;
89

910
class AdldapServiceProvider extends ServiceProvider
@@ -35,8 +36,8 @@ public function boot()
3536
public function register()
3637
{
3738
// Bind the Adldap instance to the IoC
38-
$this->app->bind('adldap', function () {
39-
$config = $this->app['config'];
39+
$this->app->bind('adldap', function (Application $app) {
40+
$config = $app->make('config');
4041

4142
$settings = $config->get('adldap');
4243

0 commit comments

Comments
 (0)