src/mg/Ding/Bean/Provider/Annotation.php
private function _getAllNames(AnnotationDefinition $beanAnnotation, $overrideWithName = false)
    {
        if ($beanAnnotation->hasOption('name')) {
            return $beanAnnotation->getOptionValues('name');
        }
        if ($overrideWithName !== false) {
            return array($overrideWithName);
        }
        return array(BeanDefinition::generateName('Bean'));
    }
private function _getAllNames(AnnotationDefinition $beanAnnotation, $overrideWithName = false)
    {
        if ($beanAnnotation->hasOption('name')) {
            return $beanAnnotation->getOptionValues('name');
        }
        if ($overrideWithName !== false) {
            return array($overrideWithName);
        }
        return array(BeanDefinition::generateName('Bean'));
    }
Returns all possible names for a bean. If none are found in the bean
annotation, the optional $overrideWithName will be chosen. If not, one
will be generated.

@param AnnotationDefinition $beanAnnotation
@param string $overrideWithName

@return string[]