本文整理汇总了PHP中Collective\Html\FormBuilder::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::__construct方法的具体用法?PHP FormBuilder::__construct怎么用?PHP FormBuilder::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Collective\Html\FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::__construct方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Create an instance of Mention builder and also call Form Builder's constructor
* @param HtmlBuilder $html [description]
* @param UrlGenerator $url [description]
* @param ViewFactory $view [description]
*/
public function __construct(HtmlBuilder $html, UrlGenerator $url, ViewFactory $view)
{
parent::__construct($html, $url, $view, csrf_token());
}
示例2: __construct
/**
* @param HtmlBuilder $html
* @param UrlGenerator $url
* @param string $csrfToken
* @param ViewErrorBag $errors
*/
public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken, ViewErrorBag $errors)
{
parent::__construct($html, $url, $csrfToken);
$this->errors = $errors;
}
示例3: __construct
public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken, Converter $converter)
{
parent::__construct($html, $url, $csrfToken);
$plugin = \Config::get('laravalid.plugin');
$this->converter = $converter;
}
示例4: __construct
public function __construct(\Collective\Html\HtmlBuilder $html, \Illuminate\Routing\UrlGenerator $url, $csrfToken, Converter\Base\Converter $converter, \Illuminate\Contracts\View\Factory $view)
{
parent::__construct($html, $url, $view, $csrfToken);
$plugin = \Config::get('laravalid.plugin');
$this->converter = $converter;
}
示例5: __construct
/**
* Create a new form builder instance.
* if config/app.php set right, will use PkHtmlBuilder to build $html
* @param \Illuminate\Routing\UrlGenerator $url
* @param \Illuminate\Html\HtmlBuilder $html
* @param string $csrfToken
* @return void
*/
public function __construct(PkHtmlBuilder $pkhtml, UrlGenerator $url, Factory $view, $csrfToken)
{
parent::__construct($pkhtml, $url, $view, $csrfToken);
}
示例6: __construct
/**
* Create new instance of this FormBuilder intercepter!
*
* @param \Collective\Html\HtmlBuilder $html
* @param \Illuminate\Contracts\Routing\UrlGenerator $url
* @param \Illuminate\Contracts\View\Factory $view
* @param string $token
* @param Illuminate\Translation\Translator $translator
* @param mixed $errors
*
* @return void
*/
public function __construct($html, $url, $view, $token, $translator, $errors = null)
{
$this->local_errors = $errors != null ? $errors : new MessageBag();
parent::__construct($html, $url, $view, $token, $translator);
}