PhpFileUnserializer
class PhpFileUnserializer implements DataFileUnerializerInterface (View source)
Load data from a PHP "module" file that returns data.
For security reason, this serializer will not be available by default with the DataSerializationManager.
ATTENTION Never use this with untrusted files.
Traits
Methods
buildMediaTypeList()
No description
boolean
canUnserializeFromFile(string $filename, MediaTypeInterface $mediaType = null)
No description
MediaTypeInterface[]
getUnserializableFileMediaTypes()
Get the list of file types supported by this deserializer.
mixed
unserializeFromFile(string $filename, MediaTypeInterface $mediaType = null)
No description
__construct()
No description
Details
at line 62
protected
buildMediaTypeList()
in MediaTypeListTrait at line 21
protected
getMediaTypes()
in MediaTypeListTrait at line 33
protected
matchMediaType(MediaTypeInterface $mediaType)
protected
getMediaTypeFactoryFlags()
protected
setFileExtensions($array = array())
protected
matchExtension($filename)
at line 34
boolean
canUnserializeFromFile(string $filename, MediaTypeInterface $mediaType = null)
at line 43
MediaTypeInterface[]
getUnserializableFileMediaTypes()
Get the list of file types supported by this deserializer.