X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fclass-loader%2FWinCacheClassLoader.php;h=75ebb84ce2fb377f763a8eb7d2fd37a1e872b119;hb=4e1bfbf98b844da83b18aca92ef00f11a4735806;hp=3e077450f1ebc9fa9784d1730383a5aafd8765d1;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/class-loader/WinCacheClassLoader.php b/vendor/symfony/class-loader/WinCacheClassLoader.php index 3e077450f..75ebb84ce 100644 --- a/vendor/symfony/class-loader/WinCacheClassLoader.php +++ b/vendor/symfony/class-loader/WinCacheClassLoader.php @@ -11,17 +11,17 @@ namespace Symfony\Component\ClassLoader; +@trigger_error('The '.__NAMESPACE__.'\WinCacheClassLoader class is deprecated since Symfony 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.', E_USER_DEPRECATED); + /** * WinCacheClassLoader implements a wrapping autoloader cached in WinCache. * * It expects an object implementing a findFile method to find the file. This * allow 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; - * * $loader = new ClassLoader(); * $loader->addPrefix('Symfony\Component', __DIR__.'/component'); * $loader->addPrefix('Symfony', __DIR__.'/framework'); @@ -45,6 +45,8 @@ namespace Symfony\Component\ClassLoader; * @author Fabien Potencier * @author Kris Wallsmith * @author Artem Ryzhkov + * + * @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead. */ class WinCacheClassLoader { @@ -58,8 +60,6 @@ class WinCacheClassLoader protected $decorated; /** - * Constructor. - * * @param string $prefix The WinCache namespace prefix to use * @param object $decorated A class loader object that implements the findFile() method * @@ -68,7 +68,7 @@ class WinCacheClassLoader */ public function __construct($prefix, $decorated) { - if (!extension_loaded('wincache')) { + if (!\extension_loaded('wincache')) { throw new \RuntimeException('Unable to use WinCacheClassLoader as WinCache is not enabled.'); } @@ -137,6 +137,6 @@ class WinCacheClassLoader */ 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); } }