src/Mapper/Definition/AnnotationDefinitionProvider.php 1 location
|
@@ 41-50 (lines=10) @@
|
38 |
|
/** |
39 |
|
* {@inheritdoc} |
40 |
|
*/ |
41 |
|
public function getDefinition(string $class): Definition |
42 |
|
{ |
43 |
|
if (! isset($this->definitionCache[$class])) { |
44 |
|
$reflection = new \ReflectionClass($class); |
45 |
|
|
46 |
|
$this->definitionCache[$class] = $this->createDefinition($reflection); |
47 |
|
} |
48 |
|
|
49 |
|
return $this->definitionCache[$class]; |
50 |
|
} |
51 |
|
|
52 |
|
/** |
53 |
|
* Create definition for given class |
src/Mapper/Definition/YamlDefinitionProvider.php 1 location
|
@@ 110-117 (lines=8) @@
|
107 |
|
/** |
108 |
|
* {@inheritdoc} |
109 |
|
*/ |
110 |
|
public function getDefinition(string $class): Definition |
111 |
|
{ |
112 |
|
if (! isset($this->definitionCache[$class])) { |
113 |
|
$this->definitionCache[$class] = $this->createDefinition($class); |
114 |
|
} |
115 |
|
|
116 |
|
return $this->definitionCache[$class]; |
117 |
|
} |
118 |
|
|
119 |
|
/** |
120 |
|
* Create definition |