1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00
This commit is contained in:
Simon Vieille 2015-11-24 19:18:00 +01:00
parent 4d5d2456a5
commit 891cb2a559
2 changed files with 5 additions and 1 deletions

View File

@ -198,3 +198,7 @@ Edit `app/bootstrap.php.d/70-security.php` and modify the value of `$app['enable
#### Disabling registration
Edit `app/bootstrap.php.d/70-security.php` and modify the value of `$app['enable_registration']` with `false`.
### Debug
`app_dev.php` is the development router. Access is granted for an IP range defined in the same file.

View File

@ -11,7 +11,7 @@ use Symfony\Component\HttpFoundation\Cookie;
$app->register(new TranslationServiceProvider(), array(
'locale' => 'en',
'locale_fallback' => 'en',
'locales' => array('en', 'fr'), // Custom parameter, not Silex
'locales' => array('en', 'fr'),
));
$app['translator'] = $app->extend('translator', function ($translator, $app) {