/** * The constructor * * @param HtmlBuilder $html * @param UrlGenerator $url * @param Session $session */ public function __construct(HtmlBuilder $html, UrlGenerator $url, Session $session) { parent::__construct($html, $url, $session->getToken()); $this->session = $session; $this->requiredFields = []; $this->errorFields = []; if ($this->session->has('formhelper-required-fields')) { $this->requiredFields = $this->session->get('formhelper-required-fields'); $this->session->forget('formhelper-required-fields'); } if ($this->session->has('formhelper-error-fields')) { $this->errorFields = $this->session->get('formhelper-error-fields'); $this->session->forget('formhelper-error-fields'); } }
/** * Create a new form builder instance. * * @param \Illuminate\Html\HtmlBuilder $html * @param \Illuminate\Routing\UrlGenerator $url * @param string $csrfToken * @param string $sessionKey * @return void */ public function __construct(HtmlBuilder $html, UrlGeneratorBase $url, $csrfToken, $sessionKey) { $this->sessionKey = $sessionKey; parent::__construct($html, $url, $csrfToken); }
/** * Create new instance of this FormBuilder intercepter! * * @param Illuminate\Routing\UrlGenerator $url * @param Illuminate\Html\HtmlBuilder $html * @param string $token * @param Illuminate\Translation\Translator $translator * @param mixed $errors * * @return void */ public function __construct($html, $url, $token, $translator, $errors = null) { $this->local_errors = $errors != null ? $errors : new MessageBag(); parent::__construct($html, $url, $token, $translator); }
/** * Create a new form builder instance. * * @param \Illuminate\Routing\UrlGenerator $url * @param \Illuminate\Html\HtmlBuilder $html * @param string $csrfToken * @return void */ public function __construct(IlluminateHtmlBuilder $html, UrlGenerator $url, $csrfToken, ManagerInterface $manager) { parent::__construct($html, $url, $csrfToken); $this->manager = $manager; }
public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken) { parent::__construct($html, $url, $csrfToken); $this->lang = app('translator'); }
public function __construct(\Illuminate\Html\HtmlBuilder $html, \Illuminate\Routing\UrlGenerator $url, $csrfToken) { parent::__construct($html, $url, $csrfToken); }
public function __construct(\Illuminate\Html\HtmlBuilder $html, \Illuminate\Routing\UrlGenerator $url, $csrfToken, Converter\Base\Converter $converter) { parent::__construct($html, $url, $csrfToken); $plugin = \Config::get('laravalid.plugin'); $this->converter = $converter; }
/** * Constructor * * @param Html $html * @param UrlGenerator $url * @param string $csrfToken */ public function __construct(Html $html, UrlGenerator $url, $csrfToken) { parent::__construct($html, $url, $csrfToken); }