Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ServicesChecker.php
Go to the documentation of this file.
1<?php
3
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 This class is part of Ubiquity.