Merge pull request #85 from wmather/5.1

Replace bindShared with singleton
This commit is contained in:
Adam Engebretson committed 2015-09-29 20:05:59 -05:00
commit a4acc4a0ad
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']);