PHP 클래스 Neos\Flow\Property\TypeConverter\MediaTypeConverter

This TypeConverter is used by default to decode the content of a HTTP request and it currently supports json and xml based media types as well as urlencoded content.
상속: extends AbstractTypeConverter, implements Neos\Flow\Property\TypeConverter\MediaTypeConverterInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$priority integer This converter is not used automatically
$sourceTypes string
$targetType string

공개 메소드들

메소드 설명
convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array Convert the given $source to $targetType depending on the MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE property mapping configuration

보호된 메소드들

메소드 설명
convertMediaType ( string $requestBody, string $mediaType ) : array Converts the given request body according to the specified media type Override this method in your custom TypeConverter to support additional media types

메소드 상세

convertFrom() 공개 메소드

Convert the given $source to $targetType depending on the MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE property mapping configuration
public convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
$source string the raw request body
$targetType string must be "array"
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 array

convertMediaType() 보호된 메소드

Converts the given request body according to the specified media type Override this method in your custom TypeConverter to support additional media types
protected convertMediaType ( string $requestBody, string $mediaType ) : array
$requestBody string the raw request body
$mediaType string the configured media type (for example "application/json")
리턴 array

프로퍼티 상세

$priority 보호되어 있는 프로퍼티

This converter is not used automatically
protected int $priority
리턴 integer

$sourceTypes 보호되어 있는 프로퍼티

protected string $sourceTypes
리턴 string

$targetType 보호되어 있는 프로퍼티

protected string $targetType
리턴 string