3 namespace BookStack\Providers;
6 use BookStack\Auth\Access\LdapService;
7 use Illuminate\Support\ServiceProvider;
9 class AuthServiceProvider extends ServiceProvider
12 * Bootstrap the application services.
16 public function boot()
22 * Register the application services.
26 public function register()
28 Auth::provider('ldap', function ($app, array $config) {
29 return new LdapUserProvider($config['model'], $app[LdapService::class]);