protected function dispatchClassMetadataLoadedEvent(ClassMetadataInterface $classMetadata): void
    {
        if (null === $this->eventDispatcher) {
            return;
        }

        $this->eventDispatcher->dispatch(
            ClassMetadataLoadedEvent::LOADED_EVENT,
            new ClassMetadataLoadedEvent($classMetadata)
        );
    }
protected function dispatchClassMetadataLoadedEvent(ClassMetadataInterface $classMetadata): void
    {
        if (null === $this->eventDispatcher) {
            return;
        }

        $this->eventDispatcher->dispatch(
            ClassMetadataLoadedEvent::LOADED_EVENT,
            new ClassMetadataLoadedEvent($classMetadata)
        );
    }
protected function dispatchClassMetadataLoadedEvent ( ClassMetadataInterface $ classMetadata ) : void { if ( null === $ this -> eventDispatcher ) { return ; } $ this -> eventDispatcher -> dispatch ( ClassMetadataLoadedEvent :: LOADED_EVENT , new ClassMetadataLoadedEvent ( $ classMetadata ) ) ; }
Dispatches a class metadata loaded event for the given class.

@param ClassMetadataInterface $classMetadata
Dispatches a class metadata loaded event for the given class .