comparison vendor/symfony/class-loader/WinCacheClassLoader.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
8 * For the full copyright and license information, please view the LICENSE 8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code. 9 * file that was distributed with this source code.
10 */ 10 */
11 11
12 namespace Symfony\Component\ClassLoader; 12 namespace Symfony\Component\ClassLoader;
13
14 @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);
13 15
14 /** 16 /**
15 * WinCacheClassLoader implements a wrapping autoloader cached in WinCache. 17 * WinCacheClassLoader implements a wrapping autoloader cached in WinCache.
16 * 18 *
17 * It expects an object implementing a findFile method to find the file. This 19 * It expects an object implementing a findFile method to find the file. This
41 * $loader->unregister(); 43 * $loader->unregister();
42 * 44 *
43 * @author Fabien Potencier <fabien@symfony.com> 45 * @author Fabien Potencier <fabien@symfony.com>
44 * @author Kris Wallsmith <kris@symfony.com> 46 * @author Kris Wallsmith <kris@symfony.com>
45 * @author Artem Ryzhkov <artem@smart-core.org> 47 * @author Artem Ryzhkov <artem@smart-core.org>
48 *
49 * @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
46 */ 50 */
47 class WinCacheClassLoader 51 class WinCacheClassLoader
48 { 52 {
49 private $prefix; 53 private $prefix;
50 54
54 * @var object 58 * @var object
55 */ 59 */
56 protected $decorated; 60 protected $decorated;
57 61
58 /** 62 /**
59 * Constructor.
60 *
61 * @param string $prefix The WinCache namespace prefix to use 63 * @param string $prefix The WinCache namespace prefix to use
62 * @param object $decorated A class loader object that implements the findFile() method 64 * @param object $decorated A class loader object that implements the findFile() method
63 * 65 *
64 * @throws \RuntimeException 66 * @throws \RuntimeException
65 * @throws \InvalidArgumentException 67 * @throws \InvalidArgumentException