Skip to content

Commit

Permalink
cakephp#674 replace all class constants
Browse files Browse the repository at this point in the history
  • Loading branch information
delamux committed May 8, 2019
1 parent 60b96e2 commit 1afbdc7
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions config/app.default.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?php

use Cake\Cache\Engine\FileEngine;
use Cake\Database\Connection;
use Cake\Database\Driver\Mysql;
use Cake\Error\ExceptionRenderer;
use Cake\Log\Engine\FileLog;
use Cake\Mailer\Transport\MailTransport;

return [
/**
Expand Down Expand Up @@ -172,7 +178,7 @@
*/
'Error' => [
'errorLevel' => E_ALL,
'exceptionRenderer' => 'Cake\Error\ExceptionRenderer',
'exceptionRenderer' => ExceptionRenderer::class,
'skipLog' => [],
'log' => true,
'trace' => true,
Expand All @@ -199,7 +205,7 @@
*/
'EmailTransport' => [
'default' => [
'className' => 'Cake\Mailer\Transport\MailTransport',
'className' => MailTransport::class,
/*
* The following keys are used in SMTP transports:
*/
Expand Down Expand Up @@ -247,8 +253,8 @@
*/
'Datasources' => [
'default' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Mysql',
'className' => Connection::class,
'driver' => Mysql::class,
'persistent' => false,
'host' => 'localhost',
/*
Expand Down Expand Up @@ -295,8 +301,8 @@
* The test connection is used during the test suite.
*/
'test' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Database\Driver\Mysql',
'className' => Connection::class,
'driver' => Mysql::class,
'persistent' => false,
'host' => 'localhost',
//'port' => 'non_standard_port_number',
Expand All @@ -318,15 +324,15 @@
*/
'Log' => [
'debug' => [
'className' => 'Cake\Log\Engine\FileLog',
'className' => FileLog::class,
'path' => LOGS,
'file' => 'debug',
'url' => env('LOG_DEBUG_URL', null),
'scopes' => false,
'levels' => ['notice', 'info', 'debug'],
],
'error' => [
'className' => 'Cake\Log\Engine\FileLog',
'className' => FileLog::class,
'path' => LOGS,
'file' => 'error',
'url' => env('LOG_ERROR_URL', null),
Expand All @@ -335,7 +341,7 @@
],
// To enable this dedicated query log, you need set your datasource's log flag to true
'queries' => [
'className' => 'Cake\Log\Engine\FileLog',
'className' => FileLog::class,
'path' => LOGS,
'file' => 'queries',
'url' => env('LOG_QUERIES_URL', null),
Expand Down

0 comments on commit 1afbdc7

Please sign in to comment.