protected function registerUserRepository()
    {
        $this->app->singleton('userrepository', function ($app) {
            $model = $app['config']['sentry.users.model'];
            $user = new $model();

            $validator = $app['validator'];

            return new UserRepository($user, $validator);
        });

        $this->app->alias('userrepository', UserRepository::class);
    }