ChainUserProvider::loadUserByUsername()

UserInterface loadUserByUsername(string $username) Loads the user for the given username. This method must throw UsernameNotFoundException if the user is not found. Parameters string $username The username Return Value UserInterface Exceptions UsernameNotFoundException if the user is not found

ChainUserProvider

class ChainUserProvider implements UserProviderInterface Chain User Provider. This provider calls several leaf providers in a chain until one is able to handle the request. Methods __construct(array $providers) array getProviders() UserInterface loadUserByUsername(string $username) Loads the user for the given username. UserInterface refreshUser(UserInterface $user) Refreshes the user for the account interface. bool supportsClass(string $class) Whether this provider

ChainExtractor::setPrefix()

setPrefix(string $prefix) Sets the prefix that should be used for new found messages. Parameters string $prefix The prefix

ChainExtractor::addExtractor()

addExtractor(string $format, ExtractorInterface $extractor) Adds a loader to the translation extractor. Parameters string $format The format of the loader ExtractorInterface $extractor The loader

ChainExtractor::extract()

extract(string $directory, MessageCatalogue $catalogue) Extracts translation messages from a template directory to the catalogue. Parameters string $directory The path to look into MessageCatalogue $catalogue The catalogue

ChainEncoder::supportsEncoding()

bool supportsEncoding(string $format) Checks whether the serializer can encode to given format. Parameters string $format format name Return Value bool

ChainExtractor

class ChainExtractor implements ExtractorInterface ChainExtractor extracts translation messages from template files. Methods addExtractor(string $format, ExtractorInterface $extractor) Adds a loader to the translation extractor. setPrefix(string $prefix) Sets the prefix that should be used for new found messages. extract(string $directory, MessageCatalogue $catalogue) Extracts translation messages from a template directory to the catalogue. Details

ChainEncoder

class ChainEncoder implements EncoderInterface Encoder delegating the decoding to a chain of encoders. Methods __construct(array $encoders = array()) 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. bool needsNormalization(string $format) Checks whether the normalization is needed for the given format. Details

ChainEncoder::encode()

final 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

ChainDecoder

class ChainDecoder implements DecoderInterface Decoder delegating the decoding to a chain of decoders. Methods __construct(array $decoders = array()) mixed decode(string $data, string $format, array $context = array()) Decodes a string into PHP data. bool supportsDecoding(string $format) Checks whether the deserializer can decode from given format. Details __construct(array $decoders = array()) Parameters array $decoders fina