Creating missing container aliases from registerCoreContainerAliases method

This commit is contained in:
Alexander Obuhovich committed 2014-09-30 23:48:39 +03:00
1 parent 1076478696
commit cd84cf3aee
1 file changed
+2
+2
View File
@@ -30,6 +30,7 @@ class HtmlServiceProvider extends ServiceProvider {
*/ */
protected function registerHtmlBuilder() protected function registerHtmlBuilder()
{ {
$this->app->alias('html', 'Illuminate\Html\HtmlBuilder');
$this->app->bindShared('html', function($app) $this->app->bindShared('html', function($app)
{ {
return new HtmlBuilder($app['url']); return new HtmlBuilder($app['url']);
@@ -43,6 +44,7 @@ class HtmlServiceProvider extends ServiceProvider {
*/ */
protected function registerFormBuilder() protected function registerFormBuilder()
{ {
$this->app->alias('form', 'Illuminate\Html\FormBuilder');
$this->app->bindShared('form', function($app) $this->app->bindShared('form', function($app)
{ {
$form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken()); $form = new FormBuilder($app['html'], $app['url'], $app['session.store']->getToken());