2021-06-10 13:15:52 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
2019-01-10 13:20:43 -08:00
|
|
|
|
|
|
|
use App\Services\LdapAd;
|
2021-04-20 14:53:47 -07:00
|
|
|
use Illuminate\Contracts\Support\DeferrableProvider;
|
2021-06-10 13:15:52 -07:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
2019-01-10 13:20:43 -08:00
|
|
|
|
2021-04-20 14:53:47 -07:00
|
|
|
class LdapServiceProvider extends ServiceProvider implements DeferrableProvider
|
2019-01-10 13:20:43 -08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap the application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2020-08-14 14:45:05 -07:00
|
|
|
$this->app->singleton(LdapAd::class, LdapAd::class);
|
2019-01-10 13:20:43 -08:00
|
|
|
}
|
2021-04-20 14:53:47 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the services provided by the provider.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function provides()
|
|
|
|
{
|
|
|
|
return [LdapAd::class];
|
|
|
|
}
|
2019-01-10 13:20:43 -08:00
|
|
|
}
|