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

ChainUserProvider::getProviders()

array getProviders() Return Value array

ChainExtractor::setPrefix()

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

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

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

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

ChainEncoder::supportsEncoding()

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

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

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

ChainEncoder::needsNormalization()

bool needsNormalization(string $format) Checks whether the normalization is needed for the given format. Parameters string $format Return Value bool