From 5872c8ba1699a6da7f2f8bd1aa9da829dd814650 Mon Sep 17 00:00:00 2001 From: Dauren Bakimbayev Date: Tue, 24 Jan 2017 21:15:09 +0100 Subject: [PATCH] Update code to 5.4 --- src/FormBuilder.php | 6 +++--- src/HtmlServiceProvider.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FormBuilder.php b/src/FormBuilder.php index 9b2fe1cc..fe5d91e7 100644 --- a/src/FormBuilder.php +++ b/src/FormBuilder.php @@ -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; @@ -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; diff --git a/src/HtmlServiceProvider.php b/src/HtmlServiceProvider.php index c632e567..479f166b 100755 --- a/src/HtmlServiceProvider.php +++ b/src/HtmlServiceProvider.php @@ -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']); });