MessageDataCollector deprecated::getMessageCount()

getMessageCount()

MessageDataCollector deprecated::collect()

collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. Parameters Request $request A Request instance Response $response A Response instance Exception $exception An Exception instance

MessageDataCollector deprecated

class MessageDataCollector extends DataCollector deprecated since version 2.4, to be removed in 3.0. Use the MessageDataCollector from SwiftmailerBundle instead. MessageDataCollector. Methods serialize() from DataCollector unserialize($data) from DataCollector __construct(ContainerInterface $container, bool $isSpool) Constructor. collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Request and Response. getMessageC

MessageCatalogueInterface::replace()

replace(array $messages, string $domain = 'messages') Sets translations for a given domain. Parameters array $messages An array of translations string $domain The domain name

MessageCatalogueInterface::has()

bool has(string $id, string $domain = 'messages') Checks if a message has a translation. Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise

MessageCatalogueInterface::getResources()

ResourceInterface[] getResources() Returns an array of resources loaded to build this collection. Return Value ResourceInterface[] An array of resources

MessageCatalogueInterface::getLocale()

string getLocale() Gets the catalogue locale. Return Value string The locale

MessageCatalogueInterface::getFallbackCatalogue()

MessageCatalogueInterface|null getFallbackCatalogue() Gets the fallback catalogue. Return Value MessageCatalogueInterface|null A MessageCatalogueInterface instance or null when no fallback has been set

MessageCatalogueInterface::getDomains()

array getDomains() Gets the domains. Return Value array An array of domains

MessageCatalogueInterface::defines()

bool defines(string $id, string $domain = 'messages') Checks if a message has a translation (it does not take into account the fallback mechanism). Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise