mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
32 lines
583 B
PHP
32 lines
583 B
PHP
<?php
|
|
|
|
namespace BookStack\Providers;
|
|
|
|
use Auth;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AuthServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
Auth::provider('ldap', function($app, array $config) {
|
|
return new LdapUserProvider($config['model'], $app['BookStack\Services\LdapService']);
|
|
});
|
|
}
|
|
}
|