Skip to content

Commit

Permalink
fix: Call the correct session setter in Laravel 5.4 (dingo#1412)
Browse files Browse the repository at this point in the history
* Call the correct session setter in Laravel 5.4

The http session is refactored in Laravel 5.4. The session handlers no longer implements Symfony's SessionInterface. 
Check links as below,
laravel/framework#17064
https://laravel.com/docs/5.4/upgrade

* "dist: trusty" for HHVM
  • Loading branch information
eddiclin authored and thilanga committed Sep 16, 2017
1 parent e5f3af3 commit 2269526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: php

sudo: false
dist: trusty

env:
global:
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function createFromIlluminate(IlluminateRequest $old)
);

if ($session = $old->getSession()) {
$new->setSession($old->getSession());
$new->setLaravelSession($old->getSession());
}

$new->setRouteResolver($old->getRouteResolver());
Expand Down

0 comments on commit 2269526

Please sign in to comment.