Skip to content

Commit

Permalink
Update default config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 24, 2013
1 parent d48c085 commit 409e3a5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions App/Config/datasources.default.php
Expand Up @@ -9,13 +9,12 @@
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v3.0.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace App\Config;

use Cake\Core\Configure;
use Cake\Database\ConnectionManager;

/**
*
Expand Down Expand Up @@ -65,8 +64,8 @@
* Create the default connection, this is the conventional default connection used
* by all models.
*/
Configure::write('Datasource.default', [
'datasource' => 'Cake\Database\Driver\Mysql',
ConnectionManager::config('default', [
'className' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
Expand All @@ -80,8 +79,8 @@
* Create a test connection. This connection is used
* while running unit and integration tests.
*/
Configure::write('Datasource.test', [
'datasource' => 'Cake\Database\Driver\Mysql',
ConnectionManager::config('test', [
'className' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
Expand Down

0 comments on commit 409e3a5

Please sign in to comment.