Skip to content

Instantly share code, notes, and snippets.

@fdewinne
Created August 6, 2013 14:24
Show Gist options
  • Save fdewinne/6164936 to your computer and use it in GitHub Desktop.
Save fdewinne/6164936 to your computer and use it in GitHub Desktop.
global.php
<?php
/**
* global.php
*
* @date 10/04/13
* @author Frederic Dewinne <frederic.dewinne@vaconsulting.lu>
* @file global.php
* @copyright Copyright (c) Foyer - All rights reserved
* @license Unauthorized copying of this source code, via any medium is strictly
* prohibited, proprietary and confidential.
*/
return [
'phpSettings' =>
[
'display_startup_errors' => false,
'display_errors' => false,
'date.timezone' => 'Europe/Luxembourg',
'intl.default_locale' => 'fr_LU'
],
'doctrine' =>
[
'driver' =>
[
'Model_Driver' =>
[
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'cache' => 'array',
'paths' =>
[
__DIR__ . '/../../module/Application/src/Application/Entity'
]
],
'orm_default' =>
[
'drivers' =>
[
'App' => 'Model_Driver',
]
]
],
'entitymanager' => [
'orm_default' => [
'connection' => 'orm_default',
'configuration' => 'orm_default'
],
//This is the alternative config
'orm_agent' => [
'connection' => 'orm_agent',
'configuration' => 'orm_agent'
]
],
'configuration' =>
[
'orm_default' =>
[
'generate_proxies' => false,
'metadata_cache' => 'array',
'query_cache' => 'array',
'result_cache' => 'array',
'driver' => 'orm_default',
'naming_strategy' => 'doctrine.naming_strategy.underscore',
'string_functions' =>
[
'GroupConcat' => 'DoctrineExtensions\Query\Mysql\GroupConcat'
]
],
'orm_agent' =>
[
'generate_proxies' => false,
'metadata_cache' => 'array',
'query_cache' => 'array',
'result_cache' => 'array',
'driver' => 'orm_default',
],
],
],
'translator' =>
[
'locale' => 'fr_FR',
'translation_file_patterns' =>
[
[
'type' => 'phparray',
'base_dir' => __DIR__ . '/../../language',
'pattern' => '%s.php'
]
]
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment