Skip to content

Commit

Permalink
Don't depend on concretes in FormBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrouwers committed Oct 8, 2015
1 parent a4acc4a commit 9ab4568
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace Collective\Html;

use DateTime;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Session\Store as Session;
use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Session\SessionInterface;
use Illuminate\Support\Collection;
use Illuminate\Support\Traits\Macroable;

Expand All @@ -22,7 +22,7 @@ class FormBuilder
/**
* The URL generator instance.
*
* @var \Illuminate\Routing\UrlGenerator
* @var \Illuminate\Contracts\Routing\UrlGenerator
*/
protected $url;

Expand All @@ -36,7 +36,7 @@ class FormBuilder
/**
* The session store implementation.
*
* @var \Illuminate\Session\Store
* @var \Illuminate\Session\SessionInterface
*/
protected $session;

Expand Down Expand Up @@ -78,7 +78,7 @@ class FormBuilder
/**
* Create a new form builder instance.
*
* @param \Illuminate\Routing\UrlGenerator $url
* @param \Illuminate\Contracts\Routing\UrlGenerator $url
* @param \Collective\Html\HtmlBuilder $html
* @param string $csrfToken
*
Expand Down Expand Up @@ -1080,7 +1080,7 @@ protected function transformKey($key)
/**
* Get the session store implementation.
*
* @return \Illuminate\Session\Store $session
* @return \Illuminate\Session\SessionInterface $session
*/
public function getSessionStore()
{
Expand All @@ -1090,11 +1090,11 @@ public function getSessionStore()
/**
* Set the session store implementation.
*
* @param \Illuminate\Session\Store $session
* @param \Illuminate\Session\SessionInterface $session
*
* @return $this
*/
public function setSessionStore(Session $session)
public function setSessionStore(SessionInterface $session)
{
$this->session = $session;

Expand Down

0 comments on commit 9ab4568

Please sign in to comment.