ConstraintViolationListInterface

interface ConstraintViolationListInterface implements Traversable, Countable, ArrayAccess A list of constraint violations. Methods add(ConstraintViolationInterface $violation) Adds a constraint violation to this list. addAll(ConstraintViolationListInterface $otherList) Merges an existing violation list into this list. ConstraintViolationInterface get(int $offset) Returns the violation at a given offset. bool has(int $offset) Returns whether the given offset exists. se

CheckboxType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name

LocaleBundle::getLocaleName()

string|null getLocaleName(string $locale, string $displayLocale = null) Returns the name of a locale. Parameters string $locale The locale to return the name of (e.g. "de_AT"). string $displayLocale Optional. The locale to return the name in. Defaults to {@link \Locale::getDefault()}. Return Value string|null The name of the locale or NULL if not found.

ValidatorBuilder::addMethodMappings()

ValidatorBuilderInterface addMethodMappings(array $methodNames) Enables constraint mapping using the given static methods. Parameters array $methodNames The names of the methods Return Value ValidatorBuilderInterface The builder object

Component\Config\Definition

Namespaces Symfony\Component\Config\Definition\BuilderSymfony\Component\Config\Definition\Exception Classes ArrayNode Represents an Array node in the config tree. BaseNode The base node class BooleanNode This node represents a Boolean value in the config tree. EnumNode Node which only allows a finite set of values. FloatNode This node represents a float value in the config tree. IntegerNode This node represents an integer value in the config tree. NumericNode This n

OutputFormatterStyle::setBackground()

setBackground(string $color = null) Sets style background color. Parameters string $color The color name Exceptions InvalidArgumentException When the color name isn't defined

GuardAuthenticationListener::handle()

handle(GetResponseEvent $event) Iterates over each authenticator to see if each wants to authenticate the request. Parameters GetResponseEvent $event

Response::isCacheable()

bool isCacheable() Returns true if the response is worth caching under any circumstance. Responses marked "private" with an explicit Cache-Control directive are considered uncacheable. Responses with neither a freshness lifetime (Expires, max-age) nor cache validator (Last-Modified, ETag) are considered uncacheable. Return Value bool true if the response is worth caching, false otherwise

Ssi::addSurrogateControl()

addSurrogateControl(Response $response) Adds HTTP headers to specify that the Response needs to be parsed for Surrogate. This method only adds an Surrogate HTTP header if the Response has some Surrogate tags. Parameters Response $response A Response instance

ErrorHandler::setExceptionHandler()

callable|null setExceptionHandler(callable $handler = null) Sets a user exception handler. Parameters callable $handler A handler that will be called on Exception Return Value callable|null The previous exception handler