X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fclass-loader%2FApcClassLoader.php;h=0129c480f3948b6cc3826d4250a81cde35668f69;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=46ee4a8566b1f4499b28da230dbc4964066f0159;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/class-loader/ApcClassLoader.php b/vendor/symfony/class-loader/ApcClassLoader.php index 46ee4a856..0129c480f 100644 --- a/vendor/symfony/class-loader/ApcClassLoader.php +++ b/vendor/symfony/class-loader/ApcClassLoader.php @@ -11,13 +11,15 @@ namespace Symfony\Component\ClassLoader; +@trigger_error('The '.__NAMESPACE__.'\ApcClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.', E_USER_DEPRECATED); + /** * ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3. * * It expects an object implementing a findFile method to find the file. This * allows using it as a wrapper around the other loaders of the component (the - * ClassLoader and the UniversalClassLoader for instance) but also around any - * other autoloaders following this convention (the Composer one for instance). + * ClassLoader for instance) but also around any other autoloaders following + * this convention (the Composer one for instance). * * // with a Symfony autoloader * use Symfony\Component\ClassLoader\ClassLoader; @@ -44,6 +46,8 @@ namespace Symfony\Component\ClassLoader; * * @author Fabien Potencier * @author Kris Wallsmith + * + * @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead. */ class ApcClassLoader { @@ -57,8 +61,6 @@ class ApcClassLoader protected $decorated; /** - * Constructor. - * * @param string $prefix The APC namespace prefix to use * @param object $decorated A class loader object that implements the findFile() method * @@ -67,7 +69,7 @@ class ApcClassLoader */ public function __construct($prefix, $decorated) { - if (!function_exists('apcu_fetch')) { + if (!\function_exists('apcu_fetch')) { throw new \RuntimeException('Unable to use ApcClassLoader as APC is not installed.'); } @@ -136,6 +138,6 @@ class ApcClassLoader */ public function __call($method, $args) { - return call_user_func_array(array($this->decorated, $method), $args); + return \call_user_func_array(array($this->decorated, $method), $args); } }