FluxBB\Web\SessionServiceProvider::register PHP Method

register() public method

Register the service provider.
public register ( ) : void
return void
    public function register()
    {
        $this->app->singleton('Illuminate\\Session\\Store', function () {
            $connection = $this->app->make('Illuminate\\Database\\ConnectionInterface');
            $handler = new DatabaseSessionHandler($connection, 'sessions');
            return new Store('fluxbb_session', $handler);
        });
        $this->app->alias('Illuminate\\Session\\Store', 'Symfony\\Component\\HttpFoundation\\Session\\SessionInterface');
    }
SessionServiceProvider