Skip to content

Commit

Permalink
Update code to 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
keptdream committed Jan 24, 2017
1 parent 9b8b907 commit 5872c8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Illuminate\Support\Collection;
use Illuminate\Support\HtmlString;
use Illuminate\Contracts\View\Factory;
use Illuminate\Session\SessionInterface;
use Illuminate\Session\Store;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Contracts\Routing\UrlGenerator;

Expand Down Expand Up @@ -1174,11 +1174,11 @@ public function getSessionStore()
/**
* Set the session store implementation.
*
* @param \Illuminate\Session\SessionInterface $session
* @param \Illuminate\Session\Store $session
*
* @return $this
*/
public function setSessionStore(SessionInterface $session)
public function setSessionStore(Store $session)
{
$this->session = $session;

Expand Down
2 changes: 1 addition & 1 deletion src/HtmlServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function registerHtmlBuilder()
protected function registerFormBuilder()
{
$this->app->singleton('form', function ($app) {
$form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->getToken());
$form = new FormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->token());

return $form->setSessionStore($app['session.store']);
});
Expand Down

0 comments on commit 5872c8b

Please sign in to comment.