Skip to content

Commit

Permalink
FIX added session constructor arguments to object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Springveldt committed Oct 13, 2017
1 parent e3187a3 commit 72e4799
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Controllers/ShareDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public function preview(HTTPRequest $request)
$session = $this->getRequest()->getSession();
} catch (BadMethodCallException $e) {
// Create a new session
$session = $this->getRequest()->setSession(Injector::inst()->create(Session::class));
$session = $this->getRequest()
->setSession(Injector::inst()->create(Session::class, []))
->getSession();
}
/**
* @var ShareToken $shareToken
Expand Down

0 comments on commit 72e4799

Please sign in to comment.