|
| 1 | +<?php |
| 2 | +return [ |
| 3 | + 'debug' => false, |
| 4 | + 'App' => [ |
| 5 | + 'namespace' => 'App', |
| 6 | + 'encoding' => env('APP_ENCODING', 'UTF-8'), |
| 7 | + 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'), |
| 8 | + 'defaultTimezone' => env('APP_DEFAULT_TIMEZONE', 'UTC'), |
| 9 | + 'base' => false, |
| 10 | + 'dir' => 'src', |
| 11 | + 'webroot' => 'webroot', |
| 12 | + 'wwwRoot' => WWW_ROOT, |
| 13 | + 'fullBaseUrl' => false, |
| 14 | + 'imageBaseUrl' => 'img/', |
| 15 | + 'cssBaseUrl' => 'css/', |
| 16 | + 'jsBaseUrl' => 'js/', |
| 17 | + 'paths' => [ |
| 18 | + 'plugins' => [ROOT . DS . 'plugins' . DS], |
| 19 | + 'templates' => [APP . 'Template' . DS], |
| 20 | + 'locales' => [APP . 'Locale' . DS], |
| 21 | + ], |
| 22 | + ], |
| 23 | + 'Security' => [ |
| 24 | + 'salt' => env('SECURITY_SALT', '__SALT__'), |
| 25 | + ], |
| 26 | + 'Asset' => [], |
| 27 | + 'Cache' => [ |
| 28 | + 'default' => [ |
| 29 | + 'className' => 'Cake\Cache\Engine\FileEngine', |
| 30 | + 'path' => CACHE, |
| 31 | + 'url' => env('CACHE_DEFAULT_URL', null), |
| 32 | + ], |
| 33 | + '_cake_core_' => [ |
| 34 | + 'className' => 'Cake\Cache\Engine\FileEngine', |
| 35 | + 'prefix' => 'myapp_cake_core_', |
| 36 | + 'path' => CACHE . 'persistent/', |
| 37 | + 'serialize' => true, |
| 38 | + 'duration' => '+1 years', |
| 39 | + 'url' => env('CACHE_CAKECORE_URL', null), |
| 40 | + ], |
| 41 | + '_cake_model_' => [ |
| 42 | + 'className' => 'Cake\Cache\Engine\FileEngine', |
| 43 | + 'prefix' => 'myapp_cake_model_', |
| 44 | + 'path' => CACHE . 'models/', |
| 45 | + 'serialize' => true, |
| 46 | + 'duration' => '+1 years', |
| 47 | + 'url' => env('CACHE_CAKEMODEL_URL', null), |
| 48 | + ], |
| 49 | + '_cake_routes_' => [ |
| 50 | + 'className' => 'Cake\Cache\Engine\FileEngine', |
| 51 | + 'prefix' => 'myapp_cake_routes_', |
| 52 | + 'path' => CACHE, |
| 53 | + 'serialize' => true, |
| 54 | + 'duration' => '+1 years', |
| 55 | + 'url' => env('CACHE_CAKEROUTES_URL', null), |
| 56 | + ], |
| 57 | + ], |
| 58 | + 'Error' => [ |
| 59 | + 'errorLevel' => E_ALL, |
| 60 | + 'exceptionRenderer' => 'Cake\Error\ExceptionRenderer', |
| 61 | + 'skipLog' => [], |
| 62 | + 'log' => true, |
| 63 | + 'trace' => true, |
| 64 | + ], |
| 65 | + 'EmailTransport' => [ |
| 66 | + 'default' => [ |
| 67 | + 'className' => 'Cake\Mailer\Transport\MailTransport', |
| 68 | + 'host' => 'localhost', |
| 69 | + 'port' => 25, |
| 70 | + 'timeout' => 30, |
| 71 | + 'username' => null, |
| 72 | + 'password' => null, |
| 73 | + 'client' => null, |
| 74 | + 'tls' => null, |
| 75 | + 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null), |
| 76 | + ], |
| 77 | + ], |
| 78 | + 'Email' => [ |
| 79 | + 'default' => [ |
| 80 | + 'transport' => 'default', |
| 81 | + 'from' => 'you@localhost', |
| 82 | + ], |
| 83 | + ], |
| 84 | + 'Datasources' => [], |
| 85 | + 'Log' => [ |
| 86 | + 'debug' => [ |
| 87 | + 'className' => 'Cake\Log\Engine\FileLog', |
| 88 | + 'path' => LOGS, |
| 89 | + 'file' => 'debug', |
| 90 | + 'url' => env('LOG_DEBUG_URL', null), |
| 91 | + 'scopes' => false, |
| 92 | + 'levels' => ['notice', 'info', 'debug'], |
| 93 | + ], |
| 94 | + 'error' => [ |
| 95 | + 'className' => 'Cake\Log\Engine\FileLog', |
| 96 | + 'path' => LOGS, |
| 97 | + 'file' => 'error', |
| 98 | + 'url' => env('LOG_ERROR_URL', null), |
| 99 | + 'scopes' => false, |
| 100 | + 'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'], |
| 101 | + ], |
| 102 | + // To enable this dedicated query log, you need set your datasource's log flag to true |
| 103 | + 'queries' => [ |
| 104 | + 'className' => 'Cake\Log\Engine\FileLog', |
| 105 | + 'path' => LOGS, |
| 106 | + 'file' => 'queries', |
| 107 | + 'url' => env('LOG_QUERIES_URL', null), |
| 108 | + 'scopes' => ['queriesLog'], |
| 109 | + ], |
| 110 | + ], |
| 111 | + 'Session' => [ |
| 112 | + 'defaults' => 'php', |
| 113 | + ], |
| 114 | +]; |
0 commit comments