1 | <?php |
||
43 | class CacheManager |
||
44 | { |
||
45 | /** |
||
46 | * @var int |
||
47 | */ |
||
48 | public static $ReadHits = 0; |
||
49 | |||
50 | /** |
||
51 | * @var int |
||
52 | */ |
||
53 | public static $WriteHits = 0; |
||
54 | |||
55 | /** |
||
56 | * @var ExtendedCacheItemPoolInterface[] |
||
57 | */ |
||
58 | protected static $config = [ |
||
59 | 'itemDetailedDate' => false,// Specify if the item must provide detailed creation/modification dates |
||
60 | 'defaultTtl' => 900,// Default time-to-live in second |
||
61 | 'securityKey' => 'auto',// The securityKey that will be used to create sub-directory |
||
62 | 'htaccess' => true,// Auto-generate .htaccess if tit is missing |
||
63 | 'default_chmod' => 0777, // 0777 recommended |
||
64 | 'path' => '',// if not set will be the value of sys_get_temp_dir() |
||
65 | 'fallback' => false, //Fall back when old driver is not support |
||
66 | 'limited_memory_each_object' => 4096, // maximum size (bytes) of object store in memory |
||
67 | 'compress_data' => false, // compress stored data, if the backend supports it |
||
68 | ]; |
||
69 | |||
70 | /** |
||
71 | * @var string |
||
72 | */ |
||
73 | protected static $namespacePath; |
||
74 | |||
75 | /** |
||
76 | * @var array |
||
77 | */ |
||
78 | protected static $instances = []; |
||
79 | |||
80 | /** |
||
81 | * @param string $driver |
||
82 | * @param array $config |
||
83 | * @return ExtendedCacheItemPoolInterface |
||
84 | * @throws phpFastCacheDriverCheckException |
||
85 | */ |
||
86 | public static function getInstance($driver = 'auto', $config = []) |
||
122 | |||
123 | /** |
||
124 | * This method is intended for internal |
||
125 | * use only and should not be used for |
||
126 | * any external development use the |
||
127 | * getInstances() method instead |
||
128 | * |
||
129 | * @internal |
||
130 | * @return ExtendedCacheItemPoolInterface[] |
||
131 | */ |
||
132 | public static function getInstances() |
||
136 | |||
137 | /** |
||
138 | * This method is intended for internal |
||
139 | * use only and should not be used for |
||
140 | * any external development use the |
||
141 | * getInstances() method instead |
||
142 | * |
||
143 | * @internal |
||
144 | * @return ExtendedCacheItemPoolInterface[] |
||
145 | */ |
||
146 | public static function &getInternalInstances() |
||
150 | |||
151 | /** |
||
152 | * @param $config |
||
153 | * @return string |
||
154 | * @throws phpFastCacheDriverCheckException |
||
155 | */ |
||
156 | public static function getAutoClass($config = []) |
||
173 | |||
174 | /** |
||
175 | * @param string $name |
||
176 | * @param array $arguments |
||
177 | * @return \Psr\Cache\CacheItemPoolInterface |
||
178 | */ |
||
179 | public static function __callStatic($name, $arguments) |
||
185 | |||
186 | /** |
||
187 | * @return bool |
||
188 | */ |
||
189 | public static function clearInstances() |
||
196 | |||
197 | /** |
||
198 | * @return string |
||
199 | */ |
||
200 | public static function getNamespacePath() |
||
204 | |||
205 | /** |
||
206 | * @param string $path |
||
207 | */ |
||
208 | public static function setNamespacePath($path) |
||
212 | |||
213 | /** |
||
214 | * @param $name |
||
215 | * @param string $value |
||
216 | * @deprecated Method "setup" is deprecated and will be removed in V6. Use method "setDefaultConfig" instead. |
||
217 | * @throws \InvalidArgumentException |
||
218 | */ |
||
219 | public static function setup($name, $value = '') |
||
224 | |||
225 | /** |
||
226 | * @param $name string|array |
||
227 | * @param mixed $value |
||
228 | * @throws \InvalidArgumentException |
||
229 | */ |
||
230 | public static function setDefaultConfig($name, $value = null) |
||
240 | |||
241 | /** |
||
242 | * @return array |
||
243 | */ |
||
244 | public static function getDefaultConfig() |
||
248 | |||
249 | /** |
||
250 | * @return array |
||
251 | */ |
||
252 | public static function getStaticSystemDrivers() |
||
272 | |||
273 | /** |
||
274 | * @return array |
||
275 | */ |
||
276 | public static function getStaticAllDrivers() |
||
284 | |||
285 | /** |
||
286 | * @param string $driverName |
||
287 | * @return string |
||
288 | */ |
||
289 | public static function standardizeDriverName($driverName) |
||
293 | } |
||
294 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..