Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ServicesChecker.php
Go to the documentation of this file.
1
<?php
2
namespace
Ubiquity\controllers\admin
;
3
12
class
ServicesChecker
{
13
14
public
static
function
hasSecurity
(): bool {
15
return \class_exists(
'\\Ubiquity\\security\\csrf\\CsrfManager'
);
16
}
17
18
public
static
function
hasShieldon
(): bool {
19
return \class_exists(
'\\Shieldon\\Firewall\\Container'
);
20
}
21
22
public
static
function
hasAcl
(): bool {
23
return \class_exists(
'\\Ubiquity\\security\\acl\\AclManager'
);
24
}
25
26
public
static
function
isCsrfStarted
(): bool {
27
if (self::hasSecurity()) {
28
return \Ubiquity\security\csrf\CsrfManager::isStarted();
29
}
30
return
false
;
31
}
32
33
public
static
function
isEncryptionStarted
(): bool {
34
if (self::hasSecurity()) {
35
return \Ubiquity\security\data\EncryptionManager::isStarted();
36
}
37
return
false
;
38
}
39
40
public
static
function
isShieldonStarted
(): bool {
41
if (self::hasShieldon()) {
42
return \Shieldon\Container::get(
'firewall'
) !==
null
;
43
}
44
return
false
;
45
}
46
}
47
Ubiquity\controllers\admin\ServicesChecker
Ubiquity\controllers\admin$ServicesChecker This class is part of Ubiquity.
Definition
ServicesChecker.php:12
Ubiquity\controllers\admin\ServicesChecker\hasShieldon
static hasShieldon()
Definition
ServicesChecker.php:18
Ubiquity\controllers\admin\ServicesChecker\isShieldonStarted
static isShieldonStarted()
Definition
ServicesChecker.php:40
Ubiquity\controllers\admin\ServicesChecker\isCsrfStarted
static isCsrfStarted()
Definition
ServicesChecker.php:26
Ubiquity\controllers\admin\ServicesChecker\hasSecurity
static hasSecurity()
Definition
ServicesChecker.php:14
Ubiquity\controllers\admin\ServicesChecker\hasAcl
static hasAcl()
Definition
ServicesChecker.php:22
Ubiquity\controllers\admin\ServicesChecker\isEncryptionStarted
static isEncryptionStarted()
Definition
ServicesChecker.php:33
Ubiquity\controllers\admin
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity-dev
src
Ubiquity
controllers
admin
ServicesChecker.php
Generated on Sun Dec 10 2023 15:04:07 for
Ubiquity
by
doxygen
1.9.8