Skip to content

Commit

Permalink
Merge configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Apr 5, 2020
1 parent 0583886 commit f8c130b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LaravelStatelessSessionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function register()
$this->registerSessionManager();

// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'laravel-stateless-session');
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'stateless');

$this->app->singleton('laravel-stateless-session', function () {
return new LaravelStatelessSession;
Expand Down
2 changes: 1 addition & 1 deletion src/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected function buildSession($handler)
{
return $this->app['config']['session.encrypt']
? $this->buildEncryptedSession($handler)
: new Store($this->app['config']['session.header'], $handler);
: new Store($this->app['config']['stateless.header'], $handler);
}

}

0 comments on commit f8c130b

Please sign in to comment.