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

loadOrReflectClassIfNecessary() protected method

If the class is completely unknown, this method won't try to load or reflect it. If it is known and reflection data has been loaded already, it won't be loaded again. In Production context, with frozen caches, this method will load reflection data for the specified class from the runtime cache.
protected loadOrReflectClassIfNecessary ( string $className ) : void
$className string Name of the class to load data for
return void
    protected function loadOrReflectClassIfNecessary($className)
    {
        if (!isset($this->classReflectionData[$className]) || is_array($this->classReflectionData[$className])) {
            return;
        }
        if ($this->loadFromClassSchemaRuntimeCache === true) {
            $this->classReflectionData[$className] = $this->reflectionDataRuntimeCache->get($this->produceCacheIdentifierFromClassName($className));
            return;
        }
        $this->reflectClass($className);
    }
ReflectionService