Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
23 | public function __construct(array $options = []) |
||
24 | { |
||
25 | @trigger_error( |
||
|
|||
26 | 'AnonymousRequestMatcher of HttpCacheBundle is deprecated. '. |
||
27 | 'Use AnonymousRequestMatcher of HttpCache library.', |
||
28 | E_USER_DEPRECATED |
||
29 | ); |
||
30 | |||
31 | if (isset($options['user_identifier_headers'], $options['session_name_prefix'])) { |
||
32 | parent::__construct($options); |
||
33 | } else { |
||
34 | parent::__construct([ |
||
35 | 'user_identifier_headers' => $options, |
||
36 | 'session_name_prefix' => 'PHPSESSID', |
||
37 | ]); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |
If you suppress an error, we recommend checking for the error condition explicitly: