Skip to content

Commit

Permalink
Name in container set to typicms.form
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed May 9, 2018
1 parent ab5a145 commit 8ac7e09
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/TypiCMS/BootForms/BootFormsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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']);
});
}

Expand Down

0 comments on commit 8ac7e09

Please sign in to comment.