forked from deblan/gist
trim desactivated
This commit is contained in:
parent
863c7510fa
commit
c8e2be1beb
|
@ -7,5 +7,3 @@ $app['config.locator.path'] = $app['root_path'].'/app/config/';
|
||||||
$app['config.locator'] = function ($app) {
|
$app['config.locator'] = function ($app) {
|
||||||
return new FileLocator($app['config.locator.path']);
|
return new FileLocator($app['config.locator.path']);
|
||||||
};
|
};
|
||||||
|
|
||||||
$app['env'] = 'dev';
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ class CreateGistForm extends AbstractForm
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'rows' => 10,
|
'rows' => 10,
|
||||||
),
|
),
|
||||||
|
'trim' => false,
|
||||||
'constraints' => array(
|
'constraints' => array(
|
||||||
new NotBlank(array(
|
new NotBlank(array(
|
||||||
'message' => $this->translator->trans('form.error.not_blank'),
|
'message' => $this->translator->trans('form.error.not_blank'),
|
||||||
|
|
|
@ -2,4 +2,6 @@
|
||||||
|
|
||||||
$app = require __DIR__.'/../app/bootstrap.php';
|
$app = require __DIR__.'/../app/bootstrap.php';
|
||||||
|
|
||||||
|
$app['env'] = 'prod';
|
||||||
|
|
||||||
$app->run();
|
$app->run();
|
||||||
|
|
Loading…
Reference in a new issue