comparison vendor/symfony/class-loader/ApcClassLoader.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__.'\ApcClassLoader 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 * ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3. 17 * ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3.
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
42 * // to be sure to use the cached one. 44 * // to be sure to use the cached one.
43 * $loader->unregister(); 45 * $loader->unregister();
44 * 46 *
45 * @author Fabien Potencier <fabien@symfony.com> 47 * @author Fabien Potencier <fabien@symfony.com>
46 * @author Kris Wallsmith <kris@symfony.com> 48 * @author Kris Wallsmith <kris@symfony.com>
49 *
50 * @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
47 */ 51 */
48 class ApcClassLoader 52 class ApcClassLoader
49 { 53 {
50 private $prefix; 54 private $prefix;
51 55
55 * @var object 59 * @var object
56 */ 60 */
57 protected $decorated; 61 protected $decorated;
58 62
59 /** 63 /**
60 * Constructor.
61 *
62 * @param string $prefix The APC namespace prefix to use 64 * @param string $prefix The APC namespace prefix to use
63 * @param object $decorated A class loader object that implements the findFile() method 65 * @param object $decorated A class loader object that implements the findFile() method
64 * 66 *
65 * @throws \RuntimeException 67 * @throws \RuntimeException
66 * @throws \InvalidArgumentException 68 * @throws \InvalidArgumentException