‪TYPO3CMS  ‪main
DebugPreset.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Psr\Log\LogLevel;
22 
28 {
32  protected ‪$name = 'Debug';
33 
37  protected ‪$priority = 50;
38 
42  protected ‪$configurationValues = [
43  'BE/debug' => true,
44  'FE/debug' => true,
45  'SYS/devIPmask' => '*',
46  'SYS/displayErrors' => 1,
47  // Values below are not available in UI
48  'LOG/TYPO3/CMS/deprecations/writerConfiguration/' . LogLevel::NOTICE . '/' . FileWriter::class . '/disabled' => false,
49  // E_WARNING | E_RECOVERABLE_ERROR | E_DEPRECATED
50  'SYS/exceptionalErrors' => 12290,
51  ];
52 
58  public function ‪isAvailable()
59  {
60  return true;
61  }
62 
69  public function ‪getPriority()
70  {
72  if (‪Environment::getContext()->isDevelopment()) {
74  }
75  return ‪$priority;
76  }
77 }
‪TYPO3\CMS\Install\Configuration\Context\DebugPreset\$priority
‪int $priority
Definition: DebugPreset.php:35
‪TYPO3\CMS\Install\Configuration\AbstractPreset
Definition: AbstractPreset.php:27
‪TYPO3\CMS\Install\Configuration\Context\DebugPreset\$configurationValues
‪array $configurationValues
Definition: DebugPreset.php:39
‪TYPO3\CMS\Install\Configuration\Context\DebugPreset
Definition: DebugPreset.php:28
‪TYPO3\CMS\Install\Configuration\Context\DebugPreset\isAvailable
‪bool isAvailable()
Definition: DebugPreset.php:55
‪TYPO3\CMS\Install\Configuration\Context\DebugPreset\$name
‪string $name
Definition: DebugPreset.php:31
‪TYPO3\CMS\Core\Log\Writer\FileWriter
Definition: FileWriter.php:29
‪TYPO3\CMS\Install\Configuration\Context\DebugPreset\getPriority
‪int getPriority()
Definition: DebugPreset.php:66
‪TYPO3\CMS\Install\Configuration\Context
Definition: ContextFeature.php:16
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:41
‪TYPO3\CMS\Core\Core\Environment\getContext
‪static getContext()
Definition: Environment.php:128