From 8ac7e09311be73f15c6829a25651fbf918c5c3dc Mon Sep 17 00:00:00 2001 From: Samuel De Backer Date: Wed, 9 May 2018 21:56:04 +0200 Subject: [PATCH] Name in container set to typicms.form --- src/TypiCMS/BootForms/BootFormsServiceProvider.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/TypiCMS/BootForms/BootFormsServiceProvider.php b/src/TypiCMS/BootForms/BootFormsServiceProvider.php index a4ecabd..a2f9087 100644 --- a/src/TypiCMS/BootForms/BootFormsServiceProvider.php +++ b/src/TypiCMS/BootForms/BootFormsServiceProvider.php @@ -33,24 +33,24 @@ public function register() protected function registerErrorStore() { - $this->app->singleton('adamwathan.form.errorstore', function ($app) { + $this->app->singleton('typicms.form.errorstore', function ($app) { return new IlluminateErrorStore($app['session.store']); }); } protected function registerOldInput() { - $this->app->singleton('adamwathan.form.oldinput', function ($app) { + $this->app->singleton('typicms.form.oldinput', function ($app) { return new IlluminateOldInputProvider($app['session.store']); }); } protected function registerFormBuilder() { - $this->app->singleton('adamwathan.form', function ($app) { + $this->app->singleton('typicms.form', function ($app) { $formBuilder = new FormBuilder(); - $formBuilder->setErrorStore($app['adamwathan.form.errorstore']); - $formBuilder->setOldInputProvider($app['adamwathan.form.oldinput']); + $formBuilder->setErrorStore($app['typicms.form.errorstore']); + $formBuilder->setOldInputProvider($app['typicms.form.oldinput']); $formBuilder->setToken($app['session.store']->token()); return $formBuilder; @@ -60,14 +60,14 @@ protected function registerFormBuilder() protected function registerBasicFormBuilder() { $this->app->singleton('bootform.basic', function ($app) { - return new BasicFormBuilder($app['adamwathan.form']); + return new BasicFormBuilder($app['typicms.form']); }); } protected function registerHorizontalFormBuilder() { $this->app->singleton('bootform.horizontal', function ($app) { - return new HorizontalFormBuilder($app['adamwathan.form']); + return new HorizontalFormBuilder($app['typicms.form']); }); }