Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
9 | public function __construct(string $keyPrefix = '') |
||
10 | { |
||
11 | if (!\extension_loaded('apcu') || \ini_get('apc.enable_cli') === '0') { |
||
12 | throw new \RuntimeException('APCu extension is not loaded or not enabled.'); |
||
13 | } |
||
14 | |||
15 | if (\ini_get('apc.use_request_time') === '1') { |
||
16 | throw new \RuntimeException('APCu ini configuration "apc.use_request_time" should be set to "0".'); |
||
17 | } |
||
18 | |||
19 | parent::__construct($keyPrefix); |
||
20 | } |
||
21 | |||
43 |