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