diff --git a/src/LdapRecord.php b/src/LdapRecord.php index 6fd9d5b5..6999b690 100644 --- a/src/LdapRecord.php +++ b/src/LdapRecord.php @@ -2,6 +2,8 @@ namespace LdapRecord\Laravel; +use LdapRecord\Laravel\Import\UserSynchronizer; + class LdapRecord { /** @@ -54,4 +56,16 @@ public static function locateUsersUsing($class) { app()->bind(LdapUserRepository::class, $class); } + + /** + * Register a class that should be used for synchronizing LDAP users. + * + * @param string|\Closure $class + * + * @return void + */ + public static function synchronizeUsersUsing($class) + { + app()->bind(UserSynchronizer::class, $class); + } }