From 7bf701764ff5661d053244b263cfe0be423faef5 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Mon, 16 Jul 2018 11:51:01 +0200 Subject: Config : database, salt, inflections, datetime format --- fai_gestion/config/bootstrap.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fai_gestion/config/bootstrap.php') diff --git a/fai_gestion/config/bootstrap.php b/fai_gestion/config/bootstrap.php index 1911964..b68fbc9 100644 --- a/fai_gestion/config/bootstrap.php +++ b/fai_gestion/config/bootstrap.php @@ -78,6 +78,7 @@ try { * shared configuration. */ //Configure::load('app_local', 'default'); +Configure::load('app_credentials', 'default'); /* * When debug = true the metadata cache should only last @@ -184,7 +185,7 @@ Type::build('time') Type::build('date') ->useImmutable(); Type::build('datetime') - ->useImmutable(); + ->useImmutable()->useLocaleParser()->setLocaleFormat('yyyy-MM-dd'); Type::build('timestamp') ->useImmutable(); @@ -197,3 +198,5 @@ Type::build('timestamp') //Inflector::rules('irregular', ['red' => 'redlings']); //Inflector::rules('uninflected', ['dontinflectme']); //Inflector::rules('transliteration', ['/å/' => 'aa']); +Inflector::rules('uninflected', ['relais']); +Inflector::rules('irregular', ['interesse' => 'interesses']); -- cgit v1.1