Neos\Flow\Reflection\ReflectionService::initialize PHP Method

initialize() protected method

This method must be run only after all dependencies have been injected.
protected initialize ( ) : void
return void
    protected function initialize()
    {
        $this->context = $this->environment->getContext();
        if ($this->hasFrozenCacheInProduction()) {
            $this->classReflectionData = $this->reflectionDataRuntimeCache->get('__classNames');
            $this->annotatedClasses = $this->reflectionDataRuntimeCache->get('__annotatedClasses');
            $this->loadFromClassSchemaRuntimeCache = true;
        } else {
            $this->loadClassReflectionCompiletimeCache();
        }
        $this->annotationReader = new AnnotationReader();
        foreach ($this->settings['reflection']['ignoredTags'] as $tagName => $ignoreFlag) {
            // Make this setting backwards compatible with old array schema (deprecated since 3.0)
            if (is_numeric($tagName) && is_string($ignoreFlag)) {
                AnnotationReader::addGlobalIgnoredName($ignoreFlag);
            }
            if ($ignoreFlag === true) {
                AnnotationReader::addGlobalIgnoredName($tagName);
            }
        }
        $this->initialized = true;
    }
ReflectionService