MessageCatalogue::add()

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

MessageCatalogue

class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterface MessageCatalogue. Methods __construct(string $locale, array $messages = array()) Constructor. string getLocale() Gets the catalogue locale. array getDomains() Gets the domains. array all(string $domain = null) Gets the messages within a given domain. set(string $id, string $translation, string $domain = 'messages') Sets a message translation. bool has(string $id, string $domain =

MergeOperation

class MergeOperation extends AbstractOperation Merge operation between two catalogues as follows: all = source ∪ target = {x: x ∈ source ∨ x ∈ target} new = all ∖ source = {x: x ∈ target ∧ x ∉ source} obsolete = source ∖ all = {x: x ∈ source ∧ x ∉ source ∧ x ∉ target} = ∅ Basically, the result contains messages from both catalogues. Methods __construct(MessageCatalogueInterface $source, MessageCatalogueInterface $target) from AbstractOperation array getDomains() Returns domains affe

MergeExtensionConfigurationPass

class MergeExtensionConfigurationPass extends MergeExtensionConfigurationPass Ensures certain extensions are always loaded. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. __construct(array $extensions) Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

MergeExtensionConfigurationPass

class MergeExtensionConfigurationPass implements CompilerPassInterface Merges extension configs into the container builder. Methods process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Details process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container

MergeDoctrineCollectionListener::onSubmit()

onSubmit(FormEvent $event) Parameters FormEvent $event

MergeDoctrineCollectionListener::onBind()

onBind(FormEvent $event) deprecated deprecated since version 3.1, to be removed in 4.0. Use {@link onSubmit()} instead. Alias of {@link onSubmit()}. Parameters FormEvent $event

MergeDoctrineCollectionListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

MergeDoctrineCollectionListener

class MergeDoctrineCollectionListener implements EventSubscriberInterface Merge changes from the request to a Doctrine\Common\Collections\Collection instance. This works with ORM, MongoDB and CouchDB instances of the collection interface. Methods static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. onSubmit(FormEvent $event) onBind(FormEvent $event) deprecated Alias of {@link onSubmit()}. Details static

MergeCollectionListener::onSubmit()

onSubmit(FormEvent $event) Parameters FormEvent $event