Convert configuration PHP 5.4 arrays.

This commit is contained in:
Taylor Otwell
2014-08-24 14:03:58 -05:00
parent a204045b28
commit 76c84d8652
17 changed files with 88 additions and 151 deletions

View File

@@ -1,6 +1,6 @@
<?php
return array(
return [
/*
|--------------------------------------------------------------------------
@@ -44,15 +44,15 @@ return array(
|
*/
'connections' => array(
'connections' => [
'sqlite' => array(
'sqlite' => [
'driver' => 'sqlite',
'database' => storage_path().'/database.sqlite',
'prefix' => '',
),
],
'mysql' => array(
'mysql' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'forge',
@@ -61,9 +61,9 @@ return array(
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
],
'pgsql' => array(
'pgsql' => [
'driver' => 'pgsql',
'host' => 'localhost',
'database' => 'forge',
@@ -72,18 +72,18 @@ return array(
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
),
],
'sqlsrv' => array(
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => 'localhost',
'database' => 'database',
'username' => 'root',
'password' => '',
'prefix' => '',
),
],
),
],
/*
|--------------------------------------------------------------------------
@@ -109,16 +109,16 @@ return array(
|
*/
'redis' => array(
'redis' => [
'cluster' => false,
'default' => array(
'default' => [
'host' => '127.0.0.1',
'port' => 6379,
'database' => 0,
),
],
),
],
);
];