Neos\Flow\ObjectManagement\CompileTimeObjectManager::buildObjectsArray PHP Method

buildObjectsArray() protected method

Builds the objects array which contains information about the registered objects, their scope, class, built method etc.
protected buildObjectsArray ( ) : array
return array
    protected function buildObjectsArray()
    {
        $objects = [];
        foreach ($this->objectConfigurations as $objectConfiguration) {
            $objectName = $objectConfiguration->getObjectName();
            $objects[$objectName] = ['l' => strtolower($objectName), 's' => $objectConfiguration->getScope(), 'p' => $objectConfiguration->getPackageKey()];
            if ($objectConfiguration->getClassName() !== $objectName) {
                $objects[$objectName]['c'] = $objectConfiguration->getClassName();
            }
            if ($objectConfiguration->getFactoryObjectName() !== '') {
                $objects[$objectName]['f'] = [$objectConfiguration->getFactoryObjectName(), $objectConfiguration->getFactoryMethodName()];
                $objects[$objectName]['fa'] = [];
                $factoryMethodArguments = $objectConfiguration->getArguments();
                if (count($factoryMethodArguments) > 0) {
                    foreach ($factoryMethodArguments as $index => $argument) {
                        $objects[$objectName]['fa'][$index] = ['t' => $argument->getType(), 'v' => $argument->getValue()];
                    }
                }
            }
        }
        $this->configurationCache->set('objects', $objects);
        return $objects;
    }