Neos\Flow\ObjectManagement\Configuration\ConfigurationBuilder::enhanceRawConfigurationWithAnnotationOptions PHP Method

enhanceRawConfigurationWithAnnotationOptions() protected method

Builds a raw configuration array by parsing possible scope and autowiring annotations from the given class or interface.
protected enhanceRawConfigurationWithAnnotationOptions ( string $className, array $rawObjectConfiguration ) : array
$className string
$rawObjectConfiguration array
return array
    protected function enhanceRawConfigurationWithAnnotationOptions($className, array $rawObjectConfiguration)
    {
        if ($this->reflectionService->isClassAnnotatedWith($className, Flow\Scope::class)) {
            $rawObjectConfiguration['scope'] = $this->reflectionService->getClassAnnotation($className, Flow\Scope::class)->value;
        }
        if ($this->reflectionService->isClassAnnotatedWith($className, Flow\Autowiring::class)) {
            $rawObjectConfiguration['autowiring'] = $this->reflectionService->getClassAnnotation($className, Flow\Autowiring::class)->enabled;
        }
        return $rawObjectConfiguration;
    }