<?php

return [
    'api-tools-content-negotiation' => [
        'selectors' => [],
    ],
    'db' => [
        'adapters' => [
            'dbAdapter' => [
                'driver' => 'Pdo',
                'username' => 'sdm_dev',
                'password' => 'OTY5OGE1ZmRhYzdlODEw',
                'dsn' => 'mysql:dbname=sdm_dev;host=rm-8vb4w1p44yiv44yl5.mysql.zhangbei.rds.aliyuncs.com;port=3306;charset=utf8mb4',
            ],
            'shareDbAdapter' => [
                'driver' => 'Pdo',
                'username' => 'sdm_dev',
                'password' => 'OTY5OGE1ZmRhYzdlODEw',
                'dsn' => 'mysql:dbname=sdm_dev;host=rm-8vb4w1p44yiv44yl5.mysql.zhangbei.rds.aliyuncs.com;port=3306;charset=utf8mb4',
            ],
//            'dbAdapter' => [
//                'driver' => 'Pdo',
//                'username' => 'sdm',
//                'password' => 'sdm_3306',
//                'dsn' => 'mysql:dbname=sdm_scitrials;host=localhost;port=3306;charset=utf8mb4',
////                'dsn' => 'mysql:dbname=sdm_bjtt;host=localhost;port=3306;charset=utf8mb4',
////                'dsn' => 'mysql:dbname=sdm_mc5;host=localhost;port=3306;charset=utf8mb4',
////                'dsn' => 'mysql:dbname=sdm_pumch;host=localhost;port=3306;charset=utf8mb4',
//            ],
//            'shareDbAdapter' => [
//                'driver' => 'Pdo',
//                'username' => 'sdm',
//                'password' => 'sdm_3306',
//                'dsn' => 'mysql:dbname=sdm_scitrials;host=localhost;port=3306;charset=utf8mb4',
////                'dsn' => 'mysql:dbname=sdm_bjtt;host=localhost;port=3306;charset=utf8mb4',
////                'dsn' => 'mysql:dbname=sdm_mc5;host=localhost;port=3306;charset=utf8mb4',
////                'dsn' => 'mysql:dbname=sdm_pumch;host=localhost;port=3306;charset=utf8mb4',
//            ],
            'edcDbAdapter' => [
                'driver' => 'Pdo',
                'username' => 'sdm',
                'password' => 'sdm_3306',
                'dsn' => 'mysql:dbname=edc_5mc;host=localhost;port=3306;charset=utf8mb4',
            ],
            'queryDbAdapter' => [
                'driver' => 'Pdo',
                'username' => 'sdm',
                'password' => 'sdm_3306',
                'dsn' => 'mysql:dbname=query;host=localhost;port=3306;charset=utf8mb4',
            ],
            'logDbAdapter' => []
        ],
    ],
    'caches' => [
        'Redis' => [
            'adapter' => [
                'name' => Redis::class,
                'options' => [
                    'namespace' => 'Redis',
                    'database' => 6,
                    'password' => 'NmJhODdmN2RhYjliYzQ2',
                    'server' => [
                        'host' => '127.0.0.1',
                        'port' => 6379
                    ]
                ]
            ]
        ]
    ]
];
