OptionsResolver::setDefaults()

OptionsResolver setDefaults(array $defaults) Sets a list of default values. Parameters array $defaults The default values to set Return Value OptionsResolver This instance Exceptions AccessException If called from a lazy option or normalizer

ExecutionContextInterface::setGroup()

setGroup(string|null $group) Sets the currently validated group. Parameters string|null $group The validated group

ValueInterface

interface ValueInterface Methods string render() Renders string representation of expression. string renderPattern() Renders string representation of pattern. bool isCaseSensitive() Returns value case sensitivity. int getType() Returns expression type. ValueInterface prepend(string $expr) ValueInterface append(string $expr) Details string render() Renders string representation of expression. Return Value string

PdoSessionHandler::createTable()

createTable() Creates the table to store sessions which can be called once for setup. Session ID is saved in a column of maximum length 128 because that is enough even for a 512 bit configured session.hash_function like Whirlpool. Session data is saved in a BLOB. One could also use a shorter inlined varbinary column if one was sure the data fits into it. Exceptions PDOException When the table already exists DomainException When an unsupported PDO driver is used

ArrayInput::getParameterOption()

mixed getParameterOption(string|array $values, mixed $default = false, bool $onlyParams = false) Returns the value of a raw option (not parsed). This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. Parameters string|array $values The value(s) to look for in the raw parameters (can be an array) mixed $default The default value to return if no result is found bool $onlyParams Only check real parameters, skip thos

CurrencyDataProvider::getFractionDigits()

getFractionDigits($currency) Data provider for {@link \Symfony\Component\Intl\Currency::getFractionDigits()}. Parameters $currency

RegionBundle::getCountryNames()

string[] getCountryNames(string $displayLocale = null) Returns the names of all known countries. Parameters string $displayLocale Optional. The locale to return the names in. Defaults to {@link \Locale::getDefault()}. Return Value string[] A list of country names indexed by country codes.

PropertyAccessDecorator::createListFromChoices()

ChoiceListInterface createListFromChoices(array|Traversable $choices, null|callable $value = null) Creates a choice list for the given choices. The choices should be passed in the values of the choices array. 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 array|Traversable $choices The choices null|callable $value The callable generating the choice values Ret

DoctrineType::createChoiceLabel()

static string createChoiceLabel(object $choice) Creates the label for a choice. For backwards compatibility, objects are cast to strings by default. Parameters object $choice The object Return Value string The string representation of the object

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