Replace bindShared with singleton

This commit is contained in:
wmather committed 2015-09-11 14:46:31 +01:00
1 parent bfb0ed2487
commit a28c3dc94c
1 file changed
+2 -2
+2 -2
View File
@@ -35,7 +35,7 @@ class HtmlServiceProvider extends ServiceProvider
*/ */
protected function registerHtmlBuilder() protected function registerHtmlBuilder()
{ {
$this->app->bindShared('html', function ($app) { $this->app->singleton('html', function ($app) {
return new HtmlBuilder($app['url']); return new HtmlBuilder($app['url']);
}); });
} }
@@ -47,7 +47,7 @@ class HtmlServiceProvider extends ServiceProvider
*/ */
protected function registerFormBuilder() protected function registerFormBuilder()
{ {
$this->app->bindShared('form', function ($app) { $this->app->singleton('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());
return $form->setSessionStore($app['session.store']); return $form->setSessionStore($app['session.store']);