From c8e2be1beb2bea1a691f78fc809dd9f2ed52b3b8 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 10 Nov 2015 21:49:42 +0100 Subject: [PATCH] trim desactivated --- app/bootstrap.php.d/10-config.php | 2 -- src/Gist/Form/CreateGistForm.php | 1 + web/index.php | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) 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();