Neos\Flow\Mvc\Controller\MvcPropertyMappingConfigurationService::modifyPropertyMappingConfiguration PHP 메소드

modifyPropertyMappingConfiguration() 보호된 메소드

All other properties are specified as allowed properties.
protected modifyPropertyMappingConfiguration ( array $propertyConfiguration, PropertyMappingConfiguration $propertyMappingConfiguration ) : void
$propertyConfiguration array
$propertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfiguration
리턴 void
    protected function modifyPropertyMappingConfiguration($propertyConfiguration, PropertyMappingConfiguration $propertyMappingConfiguration)
    {
        if (!is_array($propertyConfiguration)) {
            return;
        }
        if (isset($propertyConfiguration['__identity'])) {
            $propertyMappingConfiguration->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED, true);
            unset($propertyConfiguration['__identity']);
        } else {
            $propertyMappingConfiguration->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, true);
        }
        foreach ($propertyConfiguration as $innerKey => $innerValue) {
            if (is_array($innerValue)) {
                $this->modifyPropertyMappingConfiguration($innerValue, $propertyMappingConfiguration->forProperty($innerKey));
            }
            $propertyMappingConfiguration->allowProperties($innerKey);
        }
    }