comparison vendor/symfony/serializer/Mapping/Factory/ClassMetadataFactory.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
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
23 */ 23 */
24 class ClassMetadataFactory implements ClassMetadataFactoryInterface 24 class ClassMetadataFactory implements ClassMetadataFactoryInterface
25 { 25 {
26 use ClassResolverTrait; 26 use ClassResolverTrait;
27 27
28 /**
29 * @var LoaderInterface
30 */
31 private $loader; 28 private $loader;
32
33 /**
34 * @var Cache
35 */
36 private $cache; 29 private $cache;
37
38 /**
39 * @var array
40 */
41 private $loadedClasses; 30 private $loadedClasses;
42 31
43 /**
44 * @param LoaderInterface $loader
45 * @param Cache|null $cache
46 */
47 public function __construct(LoaderInterface $loader, Cache $cache = null) 32 public function __construct(LoaderInterface $loader, Cache $cache = null)
48 { 33 {
49 $this->loader = $loader; 34 $this->loader = $loader;
50 $this->cache = $cache; 35 $this->cache = $cache;
51 36
52 if (null !== $cache) { 37 if (null !== $cache) {
53 @trigger_error(sprintf('Passing a Doctrine Cache instance as 2nd parameter of the "%s" constructor is deprecated since version 3.1. This parameter will be removed in Symfony 4.0. Use the "%s" class instead.', __CLASS__, CacheClassMetadataFactory::class), E_USER_DEPRECATED); 38 @trigger_error(sprintf('Passing a Doctrine Cache instance as 2nd parameter of the "%s" constructor is deprecated since Symfony 3.1. This parameter will be removed in Symfony 4.0. Use the "%s" class instead.', __CLASS__, CacheClassMetadataFactory::class), E_USER_DEPRECATED);
54 } 39 }
55 } 40 }
56 41
57 /** 42 /**
58 * {@inheritdoc} 43 * {@inheritdoc}