@@ 43-46 (lines=4) @@ | ||
40 | { |
|
41 | if (!isset($this->innerLoadedMetadata[$className])) { |
|
42 | $evm = $this->documentManager->getEventManager(); |
|
43 | if ($evm->hasListeners(Events::PRE_LOAD_CLASSMETADATA)) { |
|
44 | $eventArgs = new PreLoadClassMetadataEventArgs($className, $this->documentManager); |
|
45 | $evm->dispatchEvent(Events::PRE_LOAD_CLASSMETADATA, $eventArgs); |
|
46 | } |
|
47 | ||
48 | $classMetadata = parent::getMetadataFor($className); |
|
49 | ||
@@ 50-53 (lines=4) @@ | ||
47 | ||
48 | $classMetadata = parent::getMetadataFor($className); |
|
49 | ||
50 | if ($evm->hasListeners(Events::POST_LOAD_CLASS_METADATA)) { |
|
51 | $eventArgs = new LoadClassMetadataEventArgs($classMetadata, $this->documentManager); |
|
52 | $evm->dispatchEvent(Events::POST_LOAD_CLASS_METADATA, $eventArgs); |
|
53 | } |
|
54 | ||
55 | $this->innerLoadedMetadata[$className] = $classMetadata; |
|
56 | } |