DataUriNormalizer
DataUriNormalizer
class DataUriNormalizer implements NormalizerInterface, DenormalizerInterface
Normalizes an {see \SplFileInfo} object to a data URI.
Denormalizes a data URI to a {see \SplFileObject} object.
Methods
__construct(MimeTypeGuesserInterface $mimeTypeGuesser = null) | ||
array|scalar | normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. | |
bool | supportsNormalization(mixed $data, string $format = null) Checks whether the given class is supported for normalization by this normalizer. | |
object | denormalize(mixed $data, string $class, string $format = null, array $context = array()) Denormalizes data back into an object of the given class. | |
bool | supportsDenormalization(mixed $data, string $type, string $format = null) Checks whether the given class is supported for denormalization by this normalizer. |
Details
__construct(MimeTypeGuesserInterface $mimeTypeGuesser = null)
array|scalar normalize(object $object, string $format = null, array $context = array())
Normalizes an object into a set of arrays/scalars.
bool supportsNormalization(mixed $data, string $format = null)
Checks whether the given class is supported for normalization by this normalizer.
object denormalize(mixed $data, string $class, string $format = null, array $context = array())
Denormalizes data back into an object of the given class.
bool supportsDenormalization(mixed $data, string $type, string $format = null)
Checks whether the given class is supported for denormalization by this normalizer.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Serializer/Normalizer/DataUriNormalizer.html