SessionInterface::getName()

mixed getName() Returns the session name. Return Value mixed The session name

ConstraintViolationBuilderInterface::setPlural()

ConstraintViolationBuilderInterface setPlural(int $number) Sets the number which determines how the plural form of the violation message is chosen when it is translated. Parameters int $number The number for determining the plural form Return Value ConstraintViolationBuilderInterface This builder See also \Symfony\Component\Translation\TranslatorInterface::transChoice()

FormConfigBuilder::getByReference()

bool getByReference() Returns whether the form's data should be modified by reference. Return Value bool Whether to modify the form's data by reference

AbstractRendererEngine::getResourceForBlockNameHierarchy()

mixed getResourceForBlockNameHierarchy(FormView $view, array $blockNameHierarchy, int $hierarchyLevel) Returns the resource for a block hierarchy. A block hierarchy is an array which starts with the root of the hierarchy and continues with the child of that root, the child of that child etc. The following is an example for a block hierarchy: formwidget textwidget url_widget In this example, "url_widget" is the most specific block, while the other blocks are its ancestors in the

GeneratorConfig::getBundleWriters()

BundleWriterInterface[] getBundleWriters() Returns the writers indexed by their output directories. Return Value BundleWriterInterface[]

SplCaster::castObjectStorage()

static castObjectStorage(SplObjectStorage $c, array $a, Stub $stub, $isNested) Parameters SplObjectStorage $c array $a Stub $stub $isNested

PropertyAccessor::getValue()

mixed getValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath) Returns the value at the end of the property path of the object graph. Example: use Symfony\Component\PropertyAccess\PropertyAccess; $propertyAccessor = PropertyAccess::createPropertyAccessor(); echo $propertyAccessor->getValue($object, 'child.name); // equals echo $object->getChild()->getName(); This method first tries to find a public getter for each property in the path. The nam

RecursiveValidator::validate()

ConstraintViolationListInterface validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null) Validates a value against a constraint or a list of constraints. If no constraint is passed, the constraint {@link \Symfony\Component\Validator\Constraints\Valid} is assumed. Parameters mixed $value The value to validate Constraint|Constraint[] $constraints The constraint(s) to validate against array|null $groups The validation groups to validate. If

CsrfTokenManagerInterface::removeToken()

string|null removeToken(string $tokenId) Invalidates the CSRF token with the given ID, if one exists. Parameters string $tokenId The token ID Return Value string|null Returns the removed token value if one existed, NULL otherwise

CustomNormalizer::normalize()

array|scalar normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. Parameters object $object object to normalize string $format format the normalization result will be encoded as array $context Context options for the normalizer Return Value array|scalar