interface ContextAwareEncoderInterface
Adds the support of an extra $context parameter for the supportsEncoding method.
@author Kévin Dunglas <dunglas@gmail.com>
Hierarchy
- interface \Symfony\Component\Serializer\Encoder\EncoderInterface
- interface \Symfony\Component\Serializer\Encoder\ContextAwareEncoderInterface extends \Symfony\Component\Serializer\Encoder\EncoderInterface
Expanded class hierarchy of ContextAwareEncoderInterface
All classes that implement ContextAwareEncoderInterface
1 file declares its use of ContextAwareEncoderInterface
- Serializer.php in vendor/
symfony/ serializer/ Serializer.php
File
-
vendor/
symfony/ serializer/ Encoder/ ContextAwareEncoderInterface.php, line 19
Namespace
Symfony\Component\Serializer\EncoderView source
interface ContextAwareEncoderInterface extends EncoderInterface {
/**
* @param array $context options that encoders have access to
*/
public function supportsEncoding(string $format, array $context = []) : bool;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ContextAwareEncoderInterface::supportsEncoding | public | function | Overrides EncoderInterface::supportsEncoding | 2 | |
EncoderInterface::encode | public | function | Encodes data into the given format. | 10 |