Skip to content

Commit

Permalink
Remove require $url and structure construct.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 18, 2017
1 parent d3419f2 commit 2c8bef4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ class FormBuilder
*/
protected $html;

/**
* The URL generator instance.
*
* @var \Illuminate\Contracts\Routing\UrlGenerator
*/
protected $url;

/**
* The View factory instance.
*
Expand Down Expand Up @@ -66,8 +59,12 @@ class FormBuilder
* @param \Illuminate\Contracts\View\Factory $view
* @param \Illuminate\Http\Request|null $request
*/
public function __construct(HtmlBuilder $html, UrlGeneratorContract $url, ViewFactoryContract $view, Request $request = null)
{
public function __construct(
HtmlBuilder $html,
UrlGeneratorContract $url,
ViewFactoryContract $view,
Request $request = null
) {
$this->url = $url;
$this->html = $html;
$this->view = $view;
Expand Down

0 comments on commit 2c8bef4

Please sign in to comment.