Replace bindShared with singleton
This commit is contained in:
1 parent
bfb0ed2487
commit
a28c3dc94c
1 file changed
+2
-2
@@ -35,7 +35,7 @@ class HtmlServiceProvider extends ServiceProvider
|
||||
*/
|
||||
protected function registerHtmlBuilder()
|
||||
{
|
||||
$this->app->bindShared('html', function ($app) {
|
||||
$this->app->singleton('html', function ($app) {
|
||||
return new HtmlBuilder($app['url']);
|
||||
});
|
||||
}
|
||||
@@ -47,7 +47,7 @@ class HtmlServiceProvider extends ServiceProvider
|
||||
*/
|
||||
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());
|
||||
|
||||
return $form->setSessionStore($app['session.store']);
|
||||
|
||||
Reference in new issue
Block a user