From c29419ef633f745cf3ea4b5d8187fbc1e4525b00 Mon Sep 17 00:00:00 2001 From: Jerome De Almeida Date: Tue, 24 Jan 2017 10:11:39 +0100 Subject: [PATCH] global config --- config/autoload/.gitignore | 2 - config/autoload/global.php | 114 ------------------------------------- 2 files changed, 116 deletions(-) delete mode 100644 config/autoload/global.php diff --git a/config/autoload/.gitignore b/config/autoload/.gitignore index d74c4d0..1a83fda 100644 --- a/config/autoload/.gitignore +++ b/config/autoload/.gitignore @@ -1,4 +1,2 @@ local.php *.local.php -global.php -*.global.php diff --git a/config/autoload/global.php b/config/autoload/global.php deleted file mode 100644 index 34c0904..0000000 --- a/config/autoload/global.php +++ /dev/null @@ -1,114 +0,0 @@ - array( - 'factories' => array( - 'doctrine.cache.mycache' => 'MonarcCore\Service\DoctrineCacheServiceFactory', - ), - ), - 'doctrine' => array( - 'connection' => array( - 'orm_default' => array( - 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', - 'params' => array( - 'host' => '127.0.0.1', - 'port' => 3306, - 'user' => 'root', - 'password' => '', - 'dbname' => 'monarc_common', - 'charset' => 'utf8', - 'driverOptions' => array( - PDO::ATTR_STRINGIFY_FETCHES => false, - PDO::ATTR_EMULATE_PREPARES => false, - PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', - ), - ), - ), - 'orm_cli' => array( - 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', - 'params' => array( - 'host' => '127.0.0.1', - 'port' => 3306, - 'user' => 'root', - 'password' => '', - 'dbname' => 'monarc_cli', - 'charset' => 'utf8', - 'driverOptions' => array( - PDO::ATTR_STRINGIFY_FETCHES => false, - PDO::ATTR_EMULATE_PREPARES => false, - PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', - ), - ), - ), - ), - /*'migrations_configuration' => array( - 'orm_default' => array( - 'name' => 'Monarc Migrations', - 'directory' => __DIR__."/../../migrations", - 'namespace' => 'Monarc\Migrations', - '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', - ), - ), - // https://github.com/beberlei/DoctrineExtensions/blob/master/config/mysql.yml - 'configuration' => array( - 'orm_default' => array( - 'metadata_cache' => 'mycache', - 'query_cache' => 'mycache', - 'result_cache' => 'mycache', - '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(), - 'string_functions' => array(), - 'numeric_functions' => array(), - 'second_level_cache' => array(), - ), - 'orm_cli' => array( - 'metadata_cache' => 'mycache', - 'query_cache' => 'mycache', - 'result_cache' => 'mycache', - '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(), - 'string_functions' => array(), - 'numeric_functions' => array(), - 'second_level_cache' => array(), - ), - ), - ), - // END DOCTRINE CONF -);