2016-04-12 14:39:18 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Global Configuration Override
|
|
|
|
*
|
|
|
|
* You can use this file for overriding configuration values from modules, etc.
|
|
|
|
* You would place values in here that are agnostic to the environment and not
|
|
|
|
* sensitive to security.
|
|
|
|
*
|
|
|
|
* @NOTE: In practice, this file will typically be INCLUDED in your source
|
|
|
|
* control, so do not include passwords or other sensitive information in this
|
|
|
|
* file.
|
|
|
|
*/
|
|
|
|
return array(
|
2016-06-02 11:04:52 +02:00
|
|
|
// DOCTRINE CONF
|
2016-11-17 14:55:24 +01:00
|
|
|
'service_manager' => array(
|
|
|
|
'factories' => array(
|
|
|
|
'doctrine.cache.mycache' => 'MonarcCore\Service\DoctrineCacheServiceFactory',
|
|
|
|
),
|
|
|
|
),
|
2016-04-12 14:39:18 +02:00
|
|
|
'doctrine' => array(
|
|
|
|
'connection' => array(
|
|
|
|
'orm_default' => array(
|
|
|
|
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
|
|
|
|
'params' => array(
|
2017-01-24 09:46:23 +01:00
|
|
|
'host' => '127.0.0.1',
|
2016-04-12 14:39:18 +02:00
|
|
|
'port' => 3306,
|
2017-01-24 09:46:23 +01:00
|
|
|
'user' => 'root',
|
|
|
|
'password' => '',
|
2016-06-02 11:04:52 +02:00
|
|
|
'dbname' => 'monarc_common',
|
|
|
|
'charset' => 'utf8',
|
|
|
|
'driverOptions' => array(
|
2017-01-24 09:46:23 +01:00
|
|
|
PDO::ATTR_STRINGIFY_FETCHES => false,
|
|
|
|
PDO::ATTR_EMULATE_PREPARES => false,
|
2016-06-02 11:04:52 +02:00
|
|
|
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'orm_cli' => array(
|
|
|
|
'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
|
|
|
|
'params' => array(
|
2017-01-24 09:46:23 +01:00
|
|
|
'host' => '127.0.0.1',
|
2016-06-02 11:04:52 +02:00
|
|
|
'port' => 3306,
|
|
|
|
'user' => 'root',
|
2017-01-24 09:46:23 +01:00
|
|
|
'password' => '',
|
2016-06-02 11:04:52 +02:00
|
|
|
'dbname' => 'monarc_cli',
|
2016-04-12 14:39:18 +02:00
|
|
|
'charset' => 'utf8',
|
|
|
|
'driverOptions' => array(
|
2017-01-24 09:46:23 +01:00
|
|
|
PDO::ATTR_STRINGIFY_FETCHES => false,
|
|
|
|
PDO::ATTR_EMULATE_PREPARES => false,
|
2016-04-12 14:39:18 +02:00
|
|
|
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2016-06-02 11:04:52 +02:00
|
|
|
/*'migrations_configuration' => array(
|
2016-04-12 14:39:18 +02:00
|
|
|
'orm_default' => array(
|
|
|
|
'name' => 'Monarc Migrations',
|
|
|
|
'directory' => __DIR__."/../../migrations",
|
|
|
|
'namespace' => 'Monarc\Migrations',
|
2016-06-02 11:04:52 +02:00
|
|
|
'table' => 'migrations',
|
|
|
|
'column' => 'version',
|
|
|
|
),
|
|
|
|
'orm_cli' => array(
|
|
|
|
'name' => 'Monarc Common Migrations',
|
|
|
|
'directory' => __DIR__."/../../migrations",
|
|
|
|
'namespace' => 'MonarcCli\Migrations',
|
|
|
|
'table' => 'migrations',
|
|
|
|
'column' => 'version',
|
|
|
|
),
|
|
|
|
),*/
|
|
|
|
'entitymanager' => array(
|
|
|
|
'orm_default' => array(
|
|
|
|
'connection' => 'orm_default',
|
|
|
|
'configuration' => 'orm_default'
|
|
|
|
),
|
|
|
|
'orm_cli' => array(
|
|
|
|
'connection' => 'orm_cli',
|
|
|
|
'configuration' => 'orm_cli',
|
|
|
|
),
|
|
|
|
),
|
2016-12-05 17:35:09 +01:00
|
|
|
// https://github.com/beberlei/DoctrineExtensions/blob/master/config/mysql.yml
|
2016-06-02 11:04:52 +02:00
|
|
|
'configuration' => array(
|
|
|
|
'orm_default' => array(
|
2016-11-17 14:55:24 +01:00
|
|
|
'metadata_cache' => 'mycache',
|
|
|
|
'query_cache' => 'mycache',
|
|
|
|
'result_cache' => 'mycache',
|
2016-06-02 11:04:52 +02:00
|
|
|
'driver' => 'orm_default', // This driver will be defined later
|
|
|
|
'generate_proxies' => true,
|
|
|
|
'proxy_dir' => 'data/DoctrineORMModule/Proxy',
|
|
|
|
'proxy_namespace' => 'DoctrineORMModule\Proxy',
|
|
|
|
'filters' => array(),
|
|
|
|
'datetime_functions' => array(),
|
2016-12-22 10:00:04 +01:00
|
|
|
'string_functions' => array(),
|
2016-06-02 11:04:52 +02:00
|
|
|
'numeric_functions' => array(),
|
|
|
|
'second_level_cache' => array(),
|
|
|
|
),
|
|
|
|
'orm_cli' => array(
|
2016-11-17 14:55:24 +01:00
|
|
|
'metadata_cache' => 'mycache',
|
|
|
|
'query_cache' => 'mycache',
|
|
|
|
'result_cache' => 'mycache',
|
2016-06-02 11:04:52 +02:00
|
|
|
'driver' => 'orm_cli', // This driver will be defined later
|
|
|
|
'generate_proxies' => true,
|
|
|
|
'proxy_dir' => 'data/DoctrineORMModule/Proxy',
|
|
|
|
'proxy_namespace' => 'DoctrineORMModule\Proxy',
|
|
|
|
'filters' => array(),
|
|
|
|
'datetime_functions' => array(),
|
2016-12-22 10:00:04 +01:00
|
|
|
'string_functions' => array(),
|
2016-06-02 11:04:52 +02:00
|
|
|
'numeric_functions' => array(),
|
|
|
|
'second_level_cache' => array(),
|
2016-04-12 14:39:18 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2016-06-02 11:04:52 +02:00
|
|
|
// END DOCTRINE CONF
|
2016-04-12 14:39:18 +02:00
|
|
|
);
|