Creating missing container aliases from registerCoreContainerAliases method
This commit is contained in:
1 parent
1076478696
commit
cd84cf3aee
1 file changed
+2
@@ -30,6 +30,7 @@ class HtmlServiceProvider extends ServiceProvider {
|
||||
*/
|
||||
protected function registerHtmlBuilder()
|
||||
{
|
||||
$this->app->alias('html', 'Illuminate\Html\HtmlBuilder');
|
||||
$this->app->bindShared('html', function($app)
|
||||
{
|
||||
return new HtmlBuilder($app['url']);
|
||||
@@ -43,6 +44,7 @@ class HtmlServiceProvider extends ServiceProvider {
|
||||
*/
|
||||
protected function registerFormBuilder()
|
||||
{
|
||||
$this->app->alias('form', 'Illuminate\Html\FormBuilder');
|
||||
$this->app->bindShared('form', function($app)
|
||||
{
|
||||
$form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());
|
||||
|
||||
Reference in new issue
Block a user