1 | <?php |
||
32 | abstract class HttpCache extends BaseHttpCache |
||
33 | { |
||
34 | /** |
||
35 | * Hash for anonymous user. |
||
36 | * |
||
37 | * @deprecated Use the options on UserContextSubscriber instead |
||
38 | */ |
||
39 | const ANONYMOUS_HASH = '38015b703d82206ebc01d17a39c727e5'; |
||
40 | |||
41 | /** |
||
42 | * Accept header value to be used to request the user hash to the backend application. |
||
43 | * It must match the one defined in FOSHttpCacheBundle's configuration. |
||
44 | * |
||
45 | * @deprecated Use the options on UserContextSubscriber instead |
||
46 | */ |
||
47 | const USER_HASH_ACCEPT_HEADER = 'application/vnd.fos.user-context-hash'; |
||
48 | |||
49 | /** |
||
50 | * Name of the header the user context hash will be stored into. |
||
51 | * It must match the one defined in FOSHttpCacheBundle's configuration. |
||
52 | * |
||
53 | * @deprecated Use the options on UserContextSubscriber instead |
||
54 | */ |
||
55 | const USER_HASH_HEADER = 'X-User-Context-Hash'; |
||
56 | |||
57 | /** |
||
58 | * URI used with the forwarded request for user context hash generation. |
||
59 | * |
||
60 | * @deprecated Use the options on UserContextSubscriber instead |
||
61 | */ |
||
62 | const USER_HASH_URI = '/_fos_user_context_hash'; |
||
63 | |||
64 | /** |
||
65 | * HTTP Method used with the forwarded request for user context hash generation. |
||
66 | * |
||
67 | * @deprecated Use the options on UserContextSubscriber instead |
||
68 | */ |
||
69 | const USER_HASH_METHOD = 'GET'; |
||
70 | |||
71 | /** |
||
72 | * Prefix for session names. |
||
73 | * Must match your session configuration. |
||
74 | * |
||
75 | * @deprecated Use the options on UserContextSubscriber instead |
||
76 | */ |
||
77 | const SESSION_NAME_PREFIX = 'PHPSESSID'; |
||
78 | |||
79 | /** |
||
80 | * @var UserContextSubscriber |
||
81 | */ |
||
82 | private $subscriber; |
||
83 | |||
84 | 4 | public function __construct(HttpKernelInterface $kernel, $cacheDir = null) |
|
97 | |||
98 | 4 | public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) |
|
108 | } |
||
109 |
This class constant has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the constant will be removed from the class and what other constant to use instead.