PageRenderTime 94ms CodeModel.GetById 35ms RepoModel.GetById 0ms app.codeStats 0ms

/config/app.default.php

https://gitlab.com/Ferreria/marcador
PHP | 343 lines | 128 code | 16 blank | 199 comment | 0 complexity | fdf4259854e2e7ee933ad818a0a644dc MD5 | raw file
  1. <?php
  2. return [
  3. /**
  4. * Debug Level:
  5. *
  6. * Production Mode:
  7. * false: No error messages, errors, or warnings shown.
  8. *
  9. * Development Mode:
  10. * true: Errors and warnings shown.
  11. */
  12. 'debug' => filter_var(env('DEBUG', true), FILTER_VALIDATE_BOOLEAN),
  13. /**
  14. * Configure basic information about the application.
  15. *
  16. * - namespace - The namespace to find app classes under.
  17. * - defaultLocale - The default locale for translation, formatting currencies and numbers, date and time.
  18. * - encoding - The encoding used for HTML + database connections.
  19. * - base - The base directory the app resides in. If false this
  20. * will be auto detected.
  21. * - dir - Name of app directory.
  22. * - webroot - The webroot directory.
  23. * - wwwRoot - The file path to webroot.
  24. * - baseUrl - To configure CakePHP to *not* use mod_rewrite and to
  25. * use CakePHP pretty URLs, remove these .htaccess
  26. * files:
  27. * /.htaccess
  28. * /webroot/.htaccess
  29. * And uncomment the baseUrl key below.
  30. * - fullBaseUrl - A base URL to use for absolute links.
  31. * - imageBaseUrl - Web path to the public images directory under webroot.
  32. * - cssBaseUrl - Web path to the public css directory under webroot.
  33. * - jsBaseUrl - Web path to the public js directory under webroot.
  34. * - paths - Configure paths for non class based resources. Supports the
  35. * `plugins`, `templates`, `locales` subkeys, which allow the definition of
  36. * paths for plugins, view templates and locale files respectively.
  37. */
  38. 'App' => [
  39. 'namespace' => 'App',
  40. 'encoding' => env('APP_ENCODING', 'UTF-8'),
  41. 'defaultLocale' => env('APP_DEFAULT_LOCALE', 'en_US'),
  42. 'base' => false,
  43. 'dir' => 'src',
  44. 'webroot' => 'webroot',
  45. 'wwwRoot' => WWW_ROOT,
  46. // 'baseUrl' => env('SCRIPT_NAME'),
  47. 'fullBaseUrl' => false,
  48. 'imageBaseUrl' => 'img/',
  49. 'cssBaseUrl' => 'css/',
  50. 'jsBaseUrl' => 'js/',
  51. 'paths' => [
  52. 'plugins' => [ROOT . DS . 'plugins' . DS],
  53. 'templates' => [APP . 'Template' . DS],
  54. 'locales' => [APP . 'Locale' . DS],
  55. ],
  56. ],
  57. /**
  58. * Security and encryption configuration
  59. *
  60. * - salt - A random string used in security hashing methods.
  61. * The salt value is also used as the encryption key.
  62. * You should treat it as extremely sensitive data.
  63. */
  64. 'Security' => [
  65. 'salt' => env('SECURITY_SALT', '__SALT__'),
  66. ],
  67. /**
  68. * Apply timestamps with the last modified time to static assets (js, css, images).
  69. * Will append a querystring parameter containing the time the file was modified.
  70. * This is useful for busting browser caches.
  71. *
  72. * Set to true to apply timestamps when debug is true. Set to 'force' to always
  73. * enable timestamping regardless of debug value.
  74. */
  75. 'Asset' => [
  76. // 'timestamp' => true,
  77. ],
  78. /**
  79. * Configure the cache adapters.
  80. */
  81. 'Cache' => [
  82. 'default' => [
  83. 'className' => 'File',
  84. 'path' => CACHE,
  85. 'url' => env('CACHE_DEFAULT_URL', null),
  86. ],
  87. /**
  88. * Configure the cache used for general framework caching.
  89. * Translation cache files are stored with this configuration.
  90. * Duration will be set to '+1 year' in bootstrap.php when debug = false
  91. */
  92. '_cake_core_' => [
  93. 'className' => 'File',
  94. 'prefix' => 'myapp_cake_core_',
  95. 'path' => CACHE . 'persistent/',
  96. 'serialize' => true,
  97. 'duration' => '+2 minutes',
  98. 'url' => env('CACHE_CAKECORE_URL', null),
  99. ],
  100. /**
  101. * Configure the cache for model and datasource caches. This cache
  102. * configuration is used to store schema descriptions, and table listings
  103. * in connections.
  104. * Duration will be set to '+1 year' in bootstrap.php when debug = false
  105. */
  106. '_cake_model_' => [
  107. 'className' => 'File',
  108. 'prefix' => 'myapp_cake_model_',
  109. 'path' => CACHE . 'models/',
  110. 'serialize' => true,
  111. 'duration' => '+2 minutes',
  112. 'url' => env('CACHE_CAKEMODEL_URL', null),
  113. ],
  114. ],
  115. /**
  116. * Configure the Error and Exception handlers used by your application.
  117. *
  118. * By default errors are displayed using Debugger, when debug is true and logged
  119. * by Cake\Log\Log when debug is false.
  120. *
  121. * In CLI environments exceptions will be printed to stderr with a backtrace.
  122. * In web environments an HTML page will be displayed for the exception.
  123. * With debug true, framework errors like Missing Controller will be displayed.
  124. * When debug is false, framework errors will be coerced into generic HTTP errors.
  125. *
  126. * Options:
  127. *
  128. * - `errorLevel` - int - The level of errors you are interested in capturing.
  129. * - `trace` - boolean - Whether or not backtraces should be included in
  130. * logged errors/exceptions.
  131. * - `log` - boolean - Whether or not you want exceptions logged.
  132. * - `exceptionRenderer` - string - The class responsible for rendering
  133. * uncaught exceptions. If you choose a custom class you should place
  134. * the file for that class in src/Error. This class needs to implement a
  135. * render method.
  136. * - `skipLog` - array - List of exceptions to skip for logging. Exceptions that
  137. * extend one of the listed exceptions will also be skipped for logging.
  138. * E.g.:
  139. * `'skipLog' => ['Cake\Network\Exception\NotFoundException', 'Cake\Network\Exception\UnauthorizedException']`
  140. * - `extraFatalErrorMemory` - int - The number of megabytes to increase
  141. * the memory limit by when a fatal error is encountered. This allows
  142. * breathing room to complete logging or error handling.
  143. */
  144. 'Error' => [
  145. 'errorLevel' => E_ALL & ~E_DEPRECATED,
  146. 'exceptionRenderer' => 'Cake\Error\ExceptionRenderer',
  147. 'skipLog' => [],
  148. 'log' => true,
  149. 'trace' => true,
  150. ],
  151. /**
  152. * Email configuration.
  153. *
  154. * By defining transports separately from delivery profiles you can easily
  155. * re-use transport configuration across multiple profiles.
  156. *
  157. * You can specify multiple configurations for production, development and
  158. * testing.
  159. *
  160. * Each transport needs a `className`. Valid options are as follows:
  161. *
  162. * Mail - Send using PHP mail function
  163. * Smtp - Send using SMTP
  164. * Debug - Do not send the email, just return the result
  165. *
  166. * You can add custom transports (or override existing transports) by adding the
  167. * appropriate file to src/Mailer/Transport. Transports should be named
  168. * 'YourTransport.php', where 'Your' is the name of the transport.
  169. */
  170. 'EmailTransport' => [
  171. 'default' => [
  172. 'className' => 'Mail',
  173. // The following keys are used in SMTP transports
  174. 'host' => 'localhost',
  175. 'port' => 25,
  176. 'timeout' => 30,
  177. 'username' => 'user',
  178. 'password' => 'secret',
  179. 'client' => null,
  180. 'tls' => null,
  181. 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
  182. ],
  183. ],
  184. /**
  185. * Email delivery profiles
  186. *
  187. * Delivery profiles allow you to predefine various properties about email
  188. * messages from your application and give the settings a name. This saves
  189. * duplication across your application and makes maintenance and development
  190. * easier. Each profile accepts a number of keys. See `Cake\Mailer\Email`
  191. * for more information.
  192. */
  193. 'Email' => [
  194. 'default' => [
  195. 'transport' => 'default',
  196. 'from' => 'you@localhost',
  197. //'charset' => 'utf-8',
  198. //'headerCharset' => 'utf-8',
  199. ],
  200. ],
  201. /**
  202. * Connection information used by the ORM to connect
  203. * to your application's datastores.
  204. * Drivers include Mysql Postgres Sqlite Sqlserver
  205. * See vendor\cakephp\cakephp\src\Database\Driver for complete list
  206. */
  207. 'Datasources' => [
  208. 'default' => [
  209. 'className' => 'Cake\Database\Connection',
  210. 'driver' => 'Cake\Database\Driver\Mysql',
  211. 'persistent' => false,
  212. 'host' => 'localhost',
  213. /**
  214. * CakePHP will use the default DB port based on the driver selected
  215. * MySQL on MAMP uses port 8889, MAMP users will want to uncomment
  216. * the following line and set the port accordingly
  217. */
  218. //'port' => 'non_standard_port_number',
  219. 'username' => 'my_app',
  220. 'password' => 'secret',
  221. 'database' => 'my_app',
  222. 'encoding' => 'utf8',
  223. 'timezone' => 'UTC',
  224. 'flags' => [],
  225. 'cacheMetadata' => true,
  226. 'log' => false,
  227. /**
  228. * Set identifier quoting to true if you are using reserved words or
  229. * special characters in your table or column names. Enabling this
  230. * setting will result in queries built using the Query Builder having
  231. * identifiers quoted when creating SQL. It should be noted that this
  232. * decreases performance because each query needs to be traversed and
  233. * manipulated before being executed.
  234. */
  235. 'quoteIdentifiers' => false,
  236. /**
  237. * During development, if using MySQL < 5.6, uncommenting the
  238. * following line could boost the speed at which schema metadata is
  239. * fetched from the database. It can also be set directly with the
  240. * mysql configuration directive 'innodb_stats_on_metadata = 0'
  241. * which is the recommended value in production environments
  242. */
  243. //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
  244. 'url' => env('DATABASE_URL', null),
  245. ],
  246. /**
  247. * The test connection is used during the test suite.
  248. */
  249. 'test' => [
  250. 'className' => 'Cake\Database\Connection',
  251. 'driver' => 'Cake\Database\Driver\Mysql',
  252. 'persistent' => false,
  253. 'host' => 'localhost',
  254. //'port' => 'non_standard_port_number',
  255. 'username' => 'my_app',
  256. 'password' => 'secret',
  257. 'database' => 'test_myapp',
  258. 'encoding' => 'utf8',
  259. 'timezone' => 'UTC',
  260. 'cacheMetadata' => true,
  261. 'quoteIdentifiers' => false,
  262. 'log' => false,
  263. //'init' => ['SET GLOBAL innodb_stats_on_metadata = 0'],
  264. 'url' => env('DATABASE_TEST_URL', null),
  265. ],
  266. ],
  267. /**
  268. * Configures logging options
  269. */
  270. 'Log' => [
  271. 'debug' => [
  272. 'className' => 'Cake\Log\Engine\FileLog',
  273. 'path' => LOGS,
  274. 'file' => 'debug',
  275. 'levels' => ['notice', 'info', 'debug'],
  276. 'url' => env('LOG_DEBUG_URL', null),
  277. ],
  278. 'error' => [
  279. 'className' => 'Cake\Log\Engine\FileLog',
  280. 'path' => LOGS,
  281. 'file' => 'error',
  282. 'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'],
  283. 'url' => env('LOG_ERROR_URL', null),
  284. ],
  285. ],
  286. /**
  287. * Session configuration.
  288. *
  289. * Contains an array of settings to use for session configuration. The
  290. * `defaults` key is used to define a default preset to use for sessions, any
  291. * settings declared here will override the settings of the default config.
  292. *
  293. * ## Options
  294. *
  295. * - `cookie` - The name of the cookie to use. Defaults to 'CAKEPHP'.
  296. * - `cookiePath` - The url path for which session cookie is set. Maps to the
  297. * `session.cookie_path` php.ini config. Defaults to base path of app.
  298. * - `timeout` - The time in minutes the session should be valid for.
  299. * Pass 0 to disable checking timeout.
  300. * Please note that php.ini's session.gc_maxlifetime must be equal to or greater
  301. * than the largest Session['timeout'] in all served websites for it to have the
  302. * desired effect.
  303. * - `defaults` - The default configuration set to use as a basis for your session.
  304. * There are four built-in options: php, cake, cache, database.
  305. * - `handler` - Can be used to enable a custom session handler. Expects an
  306. * array with at least the `engine` key, being the name of the Session engine
  307. * class to use for managing the session. CakePHP bundles the `CacheSession`
  308. * and `DatabaseSession` engines.
  309. * - `ini` - An associative array of additional ini values to set.
  310. *
  311. * The built-in `defaults` options are:
  312. *
  313. * - 'php' - Uses settings defined in your php.ini.
  314. * - 'cake' - Saves session files in CakePHP's /tmp directory.
  315. * - 'database' - Uses CakePHP's database sessions.
  316. * - 'cache' - Use the Cache class to save sessions.
  317. *
  318. * To define a custom session handler, save it at src/Network/Session/<name>.php.
  319. * Make sure the class implements PHP's `SessionHandlerInterface` and set
  320. * Session.handler to <name>
  321. *
  322. * To use database sessions, load the SQL file located at config/Schema/sessions.sql
  323. */
  324. 'Session' => [
  325. 'defaults' => 'php',
  326. ],
  327. ];