Skip to content

Commit 2516472

Browse files
committed
Merge pull request #97 from patrickbrouwers/patch-2
Don't depend on concretes in FormBuilder
2 parents 828da38 + 9ab4568 commit 2516472

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/FormBuilder.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Collective\Html;
44

55
use DateTime;
6-
use Illuminate\Routing\UrlGenerator;
7-
use Illuminate\Session\Store as Session;
6+
use Illuminate\Contracts\Routing\UrlGenerator;
7+
use Illuminate\Session\SessionInterface;
88
use Illuminate\Support\Collection;
99
use Illuminate\Support\Traits\Macroable;
1010

@@ -22,7 +22,7 @@ class FormBuilder
2222
/**
2323
* The URL generator instance.
2424
*
25-
* @var \Illuminate\Routing\UrlGenerator
25+
* @var \Illuminate\Contracts\Routing\UrlGenerator
2626
*/
2727
protected $url;
2828

@@ -36,7 +36,7 @@ class FormBuilder
3636
/**
3737
* The session store implementation.
3838
*
39-
* @var \Illuminate\Session\Store
39+
* @var \Illuminate\Session\SessionInterface
4040
*/
4141
protected $session;
4242

@@ -78,7 +78,7 @@ class FormBuilder
7878
/**
7979
* Create a new form builder instance.
8080
*
81-
* @param \Illuminate\Routing\UrlGenerator $url
81+
* @param \Illuminate\Contracts\Routing\UrlGenerator $url
8282
* @param \Collective\Html\HtmlBuilder $html
8383
* @param string $csrfToken
8484
*
@@ -1130,7 +1130,7 @@ protected function transformKey($key)
11301130
/**
11311131
* Get the session store implementation.
11321132
*
1133-
* @return \Illuminate\Session\Store $session
1133+
* @return \Illuminate\Session\SessionInterface $session
11341134
*/
11351135
public function getSessionStore()
11361136
{
@@ -1140,11 +1140,11 @@ public function getSessionStore()
11401140
/**
11411141
* Set the session store implementation.
11421142
*
1143-
* @param \Illuminate\Session\Store $session
1143+
* @param \Illuminate\Session\SessionInterface $session
11441144
*
11451145
* @return $this
11461146
*/
1147-
public function setSessionStore(Session $session)
1147+
public function setSessionStore(SessionInterface $session)
11481148
{
11491149
$this->session = $session;
11501150

0 commit comments

Comments
 (0)