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['ignoredTags'] as $tagName => $ignoreFlag) {
            if ($ignoreFlag === true) {
                AnnotationReader::addGlobalIgnoredName($tagName);
            }
        }

        $this->initialized = true;
    }
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['ignoredTags'] as $tagName => $ignoreFlag) {
            if ($ignoreFlag === true) {
                AnnotationReader::addGlobalIgnoredName($tagName);
            }
        }

        $this->initialized = true;
    }
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 [ 'ignoredTags' ] as $ tagName => $ ignoreFlag ) { if ( $ ignoreFlag === true ) { AnnotationReader :: addGlobalIgnoredName ( $ tagName ) ; } } $ this -> initialized = true ; }
Initialize the reflection service lazily

This method must be run only after all dependencies have been injected.

@return void
Initialize the reflection service lazily