/** * {@inheritdoc} */ protected function prepareAnnotationDefinition(AnnotationInterface $annotation, $class) { parent::prepareAnnotationDefinition($annotation, $class); if (!$annotation->getProvider()) { $annotation->setProvider($this->getProviderFromNamespace($class)); } }