diff --git a/app/bootstrap.php.d/10-config.php b/app/bootstrap.php.d/10-config.php index 2fa307e..16c2133 100644 --- a/app/bootstrap.php.d/10-config.php +++ b/app/bootstrap.php.d/10-config.php @@ -7,5 +7,3 @@ $app['config.locator.path'] = $app['root_path'].'/app/config/'; $app['config.locator'] = function ($app) { return new FileLocator($app['config.locator.path']); }; - -$app['env'] = 'dev'; diff --git a/src/Gist/Form/CreateGistForm.php b/src/Gist/Form/CreateGistForm.php index 046c9bb..dba4606 100644 --- a/src/Gist/Form/CreateGistForm.php +++ b/src/Gist/Form/CreateGistForm.php @@ -33,6 +33,7 @@ class CreateGistForm extends AbstractForm 'class' => 'form-control', 'rows' => 10, ), + 'trim' => false, 'constraints' => array( new NotBlank(array( 'message' => $this->translator->trans('form.error.not_blank'), diff --git a/web/index.php b/web/index.php index e76bb85..5dd7e92 100644 --- a/web/index.php +++ b/web/index.php @@ -2,4 +2,6 @@ $app = require __DIR__.'/../app/bootstrap.php'; +$app['env'] = 'prod'; + $app->run();