App\Providers\UserServiceProvider::registerAuth PHP Method

registerAuth() protected method

register Auth
protected registerAuth ( ) : void
return void
    protected function registerAuth()
    {
        $this->app->singleton(['xe.auth' => GuardInterface::class], function ($app) {
            $proxyClass = $app['xe.interception']->proxy(Guard::class, 'Auth');
            return new $proxyClass(new UserProvider($app['hash'], User::class), $app['session.store'], $app['request']);
        });
    }