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
trigger_error('Cannot locate the Psr/SimpleCache files', E_USER_ERROR);
54
+
\trigger_error('Cannot locate the Psr/SimpleCache files', E_USER_ERROR);
51
55
}
52
56
return;
53
57
}
@@ -60,7 +64,7 @@ class Autoload{}
60
64
}
61
65
});
62
66
63
-
if ((!\defined('PFC_IGNORE_COMPOSER_WARNING') || !PFC_IGNORE_COMPOSER_WARNING) && \class_exists('Composer\Autoload\ClassLoader')) {
64
-
trigger_error('Your project already makes use of Composer. You SHOULD use the composer dependency "phpfastcache/phpfastcache" instead of hard-autoloading.',
67
+
if ((!\defined('PFC_IGNORE_COMPOSER_WARNING') || !PFC_IGNORE_COMPOSER_WARNING) && \class_exists(\Composer\Autoload\ClassLoader::class)) {
68
+
\trigger_error('Your project already makes use of Composer. You SHOULD use the composer dependency "phpfastcache/phpfastcache" instead of hard-autoloading.',
'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead',
119
119
E_USER_DEPRECATED
120
120
);
@@ -156,7 +156,7 @@ public static function getInstance(string $driver = 'auto', $config = null, stri
156
156
try {
157
157
$fallback = $config->getFallback();
158
158
$config->setFallback('');
159
-
trigger_error(\sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver, $fallback), E_USER_WARNING);
159
+
\trigger_error(\sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver, $fallback), E_USER_WARNING);
trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances.
169
+
\trigger_error('[' . $driver . '] Calling many times CacheManager::getInstance() for already instanced drivers is a bad practice and have a significant impact on performances.
170
170
See https://github.com/PHPSocialNetwork/phpfastcache/wiki/[V5]-Why-calling-getInstance%28%29-each-time-is-a-bad-practice-%3F');
171
171
}
172
172
@@ -295,7 +295,7 @@ public static function getNamespacePath(): string
@@ -304,7 +304,7 @@ public static function getDefaultNamespacePath(): string
304
304
*/
305
305
publicstaticfunctionsetNamespacePath($path)
306
306
{
307
-
trigger_error('This method has been deprecated as of V7, please use cache manager "override" or "custom driver" features instead', E_USER_DEPRECATED);
307
+
\trigger_error('This method has been deprecated as of V7, please use cache manager "override" or "custom driver" features instead', E_USER_DEPRECATED);
308
308
self::$namespacePath = \trim($path, "\\") . '\\';
309
309
}
310
310
@@ -330,7 +330,7 @@ public static function getDefaultConfig(): ConfigurationOption
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);
333
+
\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);
334
334
return [
335
335
'Apc',
336
336
'Apcu',
@@ -362,7 +362,7 @@ public static function getStaticSystemDrivers(): array
362
362
*/
363
363
publicstaticfunctiongetStaticAllDrivers(): array
364
364
{
365
-
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);
365
+
\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