EncoderInterface::encode()

scalar encode(mixed $data, string $format, array $context = array()) Encodes data into the given format. Parameters mixed $data Data to encode string $format Format name array $context options that normalizers/encoders have access to Return Value scalar Exceptions UnexpectedValueException

EncoderInterface

interface EncoderInterface Defines the interface of encoders. Methods scalar encode(mixed $data, string $format, array $context = array()) Encodes data into the given format. bool supportsEncoding(string $format) Checks whether the serializer can encode to given format. Details scalar encode(mixed $data, string $format, array $context = array()) Encodes data into the given format. Parameters mixed $data Data to encode string $format Form

EncoderFactoryInterface

interface EncoderFactoryInterface EncoderFactoryInterface to support different encoders for different accounts. Methods PasswordEncoderInterface getEncoder(UserInterface|string $user) Returns the password encoder to use for the given account. Details PasswordEncoderInterface getEncoder(UserInterface|string $user) Returns the password encoder to use for the given account. Parameters UserInterface|string $user A UserInterface instance or a cla

EncoderFactory

class EncoderFactory implements EncoderFactoryInterface A generic encoder factory implementation. Methods __construct(array $encoders) PasswordEncoderInterface getEncoder(UserInterface|string $user) Returns the password encoder to use for the given account. Details __construct(array $encoders) Parameters array $encoders PasswordEncoderInterface getEncoder(UserInterface|string $user) Returns the

EncoderAwareInterface

interface EncoderAwareInterface Methods string getEncoderName() Gets the name of the encoder used to encode the password. Details string getEncoderName() Gets the name of the encoder used to encode the password. If the method returns null, the standard way to retrieve the encoder will be used instead. Return Value string

EmptyVersionStrategy::getVersion()

string getVersion(string $path) Returns the asset version for an asset. Parameters string $path A path Return Value string The version string

EmptyVersionStrategy::applyVersion()

string applyVersion(string $path) Applies version to the supplied path. Parameters string $path A path Return Value string The versionized path

EmptyVersionStrategy

class EmptyVersionStrategy implements VersionStrategyInterface Disable version for all assets. Methods string getVersion(string $path) Returns the asset version for an asset. string applyVersion(string $path) Applies version to the supplied path. Details string getVersion(string $path) Returns the asset version for an asset. Parameters string $path A path Return Value string The version string string applyVe

EmptyStringParser

class EmptyStringParser implements ParserInterface CSS selector class parser shortcut. This shortcut ensure compatibility with previous version. - The parser fails to parse an empty string. - In the previous version, an empty string matches each tags. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods SelectorNode[] parse(string $source) Parses given selector source into an array of tokens. De

EmailValidator

class EmailValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator __construct($strict = false) validate(mixed $value, Constraint $constraint) Checks if the passed value is valid. Details