MessageCatalogue::getMetadata()

mixed getMetadata(string $key = '', string $domain = 'messages') Gets metadata for the given domain and key. Passing an empty domain will return an array with all metadata indexed by domain and then by key. Passing an empty key will return an array with all metadata for the given domain. Parameters string $key The key string $domain The domain name Return Value mixed The value that was set or an array with the domains/keys or null

FormFactoryBuilder::setResolvedTypeFactory()

FormFactoryBuilderInterface setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory) Sets the factory for creating ResolvedFormTypeInterface instances. Parameters ResolvedFormTypeFactoryInterface $resolvedTypeFactory Return Value FormFactoryBuilderInterface The builder.

StoreInterface::isLocked()

bool isLocked(Request $request) Returns whether or not a lock exists. Parameters Request $request A Request instance Return Value bool true if lock exists, false otherwise

MetadataInterface deprecated

interface MetadataInterface deprecated since version 2.5, to be removed in 3.0. Use {@link Mapping\MetadataInterface} instead. A container for validation metadata. The container contains constraints that may belong to different validation groups. Constraints for a specific group can be fetched by calling {@link findConstraints}. Implement this interface to add validation metadata to your own metadata layer. Each metadata may have named properties. Each property can be represented by one

RecursiveContextualValidator::validateProperty()

ContextualValidatorInterface validateProperty(object $object, string $propertyName, array|null $groups = null) Validates a property of an object against the constraints specified for this property. Parameters object $object The object string $propertyName The name of the validated property array|null $groups The validation groups to validate. If none is given, "Default" is assumed Return Value ContextualValidatorInterface This validator

RouteCollection::getIterator()

ArrayIterator|Route[] getIterator() Gets the current RouteCollection as an Iterator that includes all routes. It implements \IteratorAggregate. Return Value ArrayIterator|Route[] An \ArrayIterator object for iterating over routes See also all()

DefaultChoiceListFactory::createListFromLoader()

ChoiceListInterface createListFromLoader(ChoiceLoaderInterface $loader, null|callable $value = null) Creates a choice list that is loaded with the given loader. Optionally, a callable can be passed for generating the choice values. The callable receives the choice as first and the array key as the second argument. Parameters ChoiceLoaderInterface $loader The choice loader null|callable $value The callable generating the choice values Return Value ChoiceListInterface The choice

JsonEncoder::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

NativeSessionTokenStorage::removeToken()

string|null removeToken(string $tokenId) Removes a CSRF token. Parameters string $tokenId The token ID Return Value string|null Returns the removed token if one existed, NULL otherwise

MessageCatalogue::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