Skip to content

Commit

Permalink
Updating service provider to reflect latest Laravel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomastkim committed Jun 20, 2016
1 parent 5f6d4ba commit be31ce9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Kim/Activity/ActivityServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ private function extendSessionHandler()
{
$connection = $this->app['config']['session.connection'];
$table = $this->app['config']['session.table'];
$lifetime = $this->app['config']['session.lifetime'];

$this->app['session']->extend('database', function($app) use ($connection, $table)
$this->app['session']->extend('database', function($app) use ($connection, $table, $lifetime)
{
return new DatabaseWithUserSessionHandler($this->app['db']->connection($connection), $table);
return new DatabaseWithUserSessionHandler($this->app['db']->connection($connection), $table, $lifetime);
});
}
}

0 comments on commit be31ce9

Please sign in to comment.