FormRenderer

class FormRenderer implements FormRendererInterface Renders a form into HTML using a rendering engine. Constants CACHE_KEY_VAR Methods __construct(FormRendererEngineInterface $engine, CsrfTokenManagerInterface $csrfTokenManager = null) Constructor. FormRendererEngineInterface getEngine() Returns the engine used by this renderer. setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. string renderCsrfToken(string $t

StubCollator deprecated

class StubCollator extends Collator deprecated since version 2.3, to be removed in 3.0. Use {@link \Symfony\Component\Intl\Collator\Collator} instead. Alias of {@link \Symfony\Component\Intl\Collator\Collator}. Constants FRENCH_COLLATION ALTERNATE_HANDLING CASE_FIRST CASE_LEVEL NORMALIZATION_MODE STRENGTH HIRAGANA_QUATERNARY_MODE NUMERIC_COLLATION DEFAULT_VALUE PRIMARY SECONDARY TERTIARY DEFAULT_STRENGTH QUATERNARY IDENTICAL OF

SimpleChoiceList deprecated

class SimpleChoiceList extends ChoiceList deprecated since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\ChoiceList\ArrayChoiceList} instead. A choice list for choices of type string or integer. Choices and their associated labels can be passed in a single array. Since choices are passed as array keys, only strings or integer choices are allowed. Choices may also be given as hierarchy of unlimited depth by creating nested arrays. The title of the sub-hierarchy can

ChainDecoder::supportsDecoding()

bool supportsDecoding(string $format) Checks whether the deserializer can decode from given format. Parameters string $format format name Return Value bool

RequestContext::getHost()

string getHost() Gets the HTTP host. The host is always lowercased because it must be treated case-insensitive. Return Value string The HTTP host

ParameterBag::unescapeValue()

mixed unescapeValue(mixed $value) Unescape parameter placeholders %. Parameters mixed $value Return Value mixed

FileFormField::setFilePath()

setFilePath(string $path) Sets path to the file as string for simulating HTTP request. Parameters string $path The path to the file

DataCollectorTranslator::getCollectedMessages()

array getCollectedMessages() Return Value array

FlashBag::add()

add(string $type, string $message) Adds a flash message for type. Parameters string $type string $message

PropertyAccessDecorator

class PropertyAccessDecorator implements ChoiceListFactoryInterface Adds property path support to a choice list factory. Pass the decorated factory to the constructor: php $decorator = new PropertyAccessDecorator($factory); You can now pass property paths for generating choice values, labels, view indices, HTML attributes and for determining the preferred choices and the choice groups: php // extract values from the $value property $list = $createListFromChoices($objects, 'value'); Methods