TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
LivePreset.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Install\Configuration\Context
;
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
17
use
TYPO3\CMS\Core\Log\LogLevel
;
18
use
TYPO3\CMS\Core\Log\Writer\FileWriter
;
19
use
TYPO3\CMS\Install\Configuration
;
20
25
class
LivePreset
extends
Configuration\AbstractPreset
26
{
30
protected
$name
=
'Live'
;
31
35
protected
$priority
= 50;
36
40
protected
$configurationValues
= [
41
'BE/debug'
=>
false
,
42
'FE/debug'
=>
false
,
43
'SYS/devIPmask'
=>
''
,
44
'SYS/displayErrors'
=> 0,
45
'SYS/systemLogLevel'
=> 2,
46
// Values below are not available in UI
47
'LOG/TYPO3/CMS/deprecations/writerConfiguration/'
.
LogLevel::NOTICE
.
'/'
. FileWriter::class .
'/disabled'
=>
true
,
48
// E_RECOVERABLE_ERROR
49
'SYS/exceptionalErrors'
=> 4096,
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();
71
$priority
=
$this->priority
;
72
if
($context->isProduction()) {
73
$priority
=
$priority
+ 20;
74
}
75
return
$priority
;
76
}
77
}
TYPO3\CMS\Install\Configuration\AbstractPreset
Definition:
AbstractPreset.php:26
TYPO3\CMS\Install\Configuration\Context\LivePreset\getPriority
int getPriority()
Definition:
LivePreset.php:65
TYPO3\CMS\Install\Configuration\Context\LivePreset\$configurationValues
array $configurationValues
Definition:
LivePreset.php:37
TYPO3\CMS\Install\Configuration\Context\LivePreset\$priority
int $priority
Definition:
LivePreset.php:33
TYPO3\CMS\Install\Configuration
Definition:
AbstractCustomPreset.php:2
TYPO3\CMS\Core\Log\Writer\FileWriter
Definition:
FileWriter.php:29
TYPO3\CMS\Install\Configuration\Context\LivePreset\$name
string $name
Definition:
LivePreset.php:29
TYPO3\CMS\Install\Configuration\Context
Definition:
ContextFeature.php:2
TYPO3\CMS\Install\Configuration\Context\LivePreset\isAvailable
bool isAvailable()
Definition:
LivePreset.php:54
TYPO3\CMS\Install\Configuration\Context\LivePreset
Definition:
LivePreset.php:26
TYPO3\CMS\Core\Log\LogLevel\NOTICE
const NOTICE
Definition:
LogLevel.php:76
TYPO3\CMS\Core\Log\LogLevel
Definition:
LogLevel.php:21
doxygen
typo3
sysext
install
Classes
Configuration
Context
LivePreset.php
Generated on Tue Oct 5 2021 01:57:49 for TYPO3CMS by
1.8.18