PHP Class Neos\Flow\Property\TypeConverter\SessionConverter

Given a session ID this will return an instance of Neos\Flow\Session\Session.
Inheritance: extends AbstractTypeConverter
显示文件 Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$priority integer
$sessionManager Neos\Flow\Session\SessionManagerInterface
$sourceTypes array
$targetType string

Public Methods

Method Description
canConvertFrom ( mixed $source, string $targetType ) : boolean This implementation always returns TRUE for this method.
convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object Convert a session identifier from $source to a Session object

Method Details

canConvertFrom() public method

This implementation always returns TRUE for this method.
public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed the source data
$targetType string the type to convert to.
return boolean TRUE if this TypeConverter can convert from $source to $targetType, FALSE otherwise.

convertFrom() public method

Convert a session identifier from $source to a Session object
public convertFrom ( string $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object
$source string
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
return object the target type

Property Details

$priority protected_oe property

protected int $priority
return integer

$sessionManager protected_oe property

protected SessionManagerInterface,Neos\Flow\Session $sessionManager
return Neos\Flow\Session\SessionManagerInterface

$sourceTypes protected_oe property

protected array $sourceTypes
return array

$targetType protected_oe property

protected string $targetType
return string