You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migration/MigratingFromV6ToV7.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,11 @@ The time has changed, you now have to use: `class PhpfastcacheAbstractProxy`
21
21
For any useful purpose, all the PhpFastCache exceptions has been **C**apitalized.
22
22
Class `Phpfastcache\Exceptions\phpFastCache[...]Exception` have been renamed to `Phpfastcache\Exceptions\Phpfastcache[...]Exception`
23
23
24
+
### Deprecations
25
+
-`Phpfastcache\CacheManager::getStaticAllDrivers()` replaced by `Phpfastcache\CacheManager::getDriverList()`
26
+
-`Phpfastcache\CacheManager::getStaticSystemDrivers()` replaced by `Phpfastcache\CacheManager::getDriverList()`
27
+
- Configuration option `ignoreSymfonyNotice` will not be replaced since that the related Symfony notice in `Phpfastcache\CacheManager::getInstance()` has been removed
28
+
24
29
### Return type & Scalar type declarations
25
30
:anger::exclamation: The V7 will make use of new php's return type & scalars type declarations features.
26
31
This means that you will now have to be very careful about the data types that you are sending to the phpFastCache API.
@@ -146,4 +151,3 @@ The API changelog used to be hardcoded as a HEREDOC in the `Api::getChangelog()`
146
151
The API changelog format has been moved to a MarDown file (.md)
147
152
If you were using `Api::getChangelog()` you may need to check that your code is still working as expected.
148
153
The method still returns a valid string but its format has changed slightly.
trigger_error(sprintf('Method "%s" is deprecated as of the V7 and will be removed soon or later, use CacheManager::getDriverList() instead.', __METHOD__), E_USER_DEPRECATED);
292
306
return [
293
307
'Apc',
294
308
'Apcu',
@@ -316,19 +330,45 @@ public static function getStaticSystemDrivers()
316
330
317
331
/**
318
332
* @return array
333
+
* @deprecated As of V7 will be removed soon or later, use CacheManager::getDriverList() instead
319
334
*/
320
-
publicstaticfunctiongetStaticAllDrivers()
335
+
publicstaticfunctiongetStaticAllDrivers(): array
321
336
{
322
-
/**
323
-
* @todo Reflection reader
324
-
*/
337
+
trigger_error(sprintf('Method "%s" is deprecated as of the V7 and will be removed soon or later, use CacheManager::getDriverList() instead.', __METHOD__), E_USER_DEPRECATED);
0 commit comments