Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/class-loader/XcacheClassLoader.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__.'\XcacheClassLoader 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 * XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3. | 17 * XcacheClassLoader implements a wrapping autoloader cached in XCache 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 |
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 Kim Hemsø Rasmussen <kimhemsoe@gmail.com> | 47 * @author Kim Hemsø Rasmussen <kimhemsoe@gmail.com> |
48 * | |
49 * @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead. | |
46 */ | 50 */ |
47 class XcacheClassLoader | 51 class XcacheClassLoader |
48 { | 52 { |
49 private $prefix; | 53 private $prefix; |
50 | |
51 /** | |
52 * A class loader object that implements the findFile() method. | |
53 * | |
54 * @var object | |
55 */ | |
56 private $decorated; | 54 private $decorated; |
57 | 55 |
58 /** | 56 /** |
59 * Constructor. | |
60 * | |
61 * @param string $prefix The XCache namespace prefix to use | 57 * @param string $prefix The XCache namespace prefix to use |
62 * @param object $decorated A class loader object that implements the findFile() method | 58 * @param object $decorated A class loader object that implements the findFile() method |
63 * | 59 * |
64 * @throws \RuntimeException | 60 * @throws \RuntimeException |
65 * @throws \InvalidArgumentException | 61 * @throws \InvalidArgumentException |