Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorDeveloperConfigOptions.php
| Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | return array( | ||||
| "investigating performance issues, you can adjust the rate ". | "investigating performance issues, you can adjust the rate ". | ||||
| "in order to collect more data.")), | "in order to collect more data.")), | ||||
| $this->newOption('phabricator.developer-mode', 'bool', false) | $this->newOption('phabricator.developer-mode', 'bool', false) | ||||
| ->setBoolOptions( | ->setBoolOptions( | ||||
| array( | array( | ||||
| pht('Enable developer mode'), | pht('Enable developer mode'), | ||||
| pht('Disable developer mode'), | pht('Disable developer mode'), | ||||
| )) | )) | ||||
| ->setSummary(pht('Enable verbose error reporting and disk reads.')) | ->setSummary(pht('Enable verbose error reporting and disk reads.')) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| 'This option enables verbose error reporting (stack traces, '. | 'This option enables verbose error reporting (stack traces, '. | ||||
| 'error callouts) and forces disk reads of static assets on '. | 'error callouts) and forces disk reads of static assets on '. | ||||
| 'every reload.')), | 'every reload.')), | ||||
| $this->newOption('celerity.minify', 'bool', true) | |||||
| ->setBoolOptions( | |||||
| array( | |||||
| pht('Minify static resources.'), | |||||
| pht("Don't minify static resources."), | |||||
| )) | |||||
| ->setSummary(pht('Minify static Celerity resources.')) | |||||
| ->setDescription( | |||||
| pht( | |||||
| 'Minify static resources by removing whitespace and comments. You '. | |||||
| 'should enable this in production, but disable it in '. | |||||
| 'development.')), | |||||
| $this->newOption('cache.enable-deflate', 'bool', true) | |||||
| ->setBoolOptions( | |||||
| array( | |||||
| pht('Enable deflate compression'), | |||||
| pht('Disable deflate compression'), | |||||
| )) | |||||
| ->setSummary( | |||||
| pht('Toggle %s-based compression for some caches.', 'gzdeflate()')) | |||||
| ->setDescription( | |||||
| pht( | |||||
| 'Set this to false to disable the use of %s-based '. | |||||
| 'compression in some caches. This may give you less performant '. | |||||
| '(but more debuggable) caching.', | |||||
| 'gzdeflate()')), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||