Question::setNormalizer()

Question setNormalizer(callable $normalizer) Sets a normalizer for the response. The normalizer can be a callable (a string), a closure or a class implementing __invoke. Parameters callable $normalizer Return Value Question The current instance

ValidatorBuilderInterface::addYamlMappings()

ValidatorBuilderInterface addYamlMappings(array $paths) Adds a list of YAML constraint mappings file to the validator. Parameters array $paths The paths to the mapping files Return Value ValidatorBuilderInterface The builder object

ContainerBuilder::setDefinition()

Definition setDefinition(string $id, Definition $definition) Sets a service definition. Parameters string $id The service identifier Definition $definition A Definition instance Return Value Definition the service definition Exceptions BadMethodCallException When this ContainerBuilder is frozen

XmlFileLoader

class XmlFileLoader extends FileLoader Loads validation metadata from an XML file. Constants DEFAULT_NAMESPACE The namespace to load constraints from by default. Methods __construct(string $file) Creates a new loader. from FileLoader bool loadClassMetadata(ClassMetadata $metadata) Loads validation metadata into a {@link ClassMetadata} instance. Details __construct(string $file) Creates a new loader. Parameters string $file The mappi

FormField

class FormField FormField is the abstract class for all form fields. Methods __construct(DOMElement $node) Constructor. string getName() Returns the name of the field. string|array getValue() Gets the value of the field. setValue(string $value) Sets the value of the field. bool hasValue() Returns true if the field should be included in the submitted values. bool isDisabled() Check if the current field is disabled. Details __constr

Route::addRequirements()

Route addRequirements(array $requirements) Adds requirements. This method implements a fluent interface. Parameters array $requirements The requirements Return Value Route The current Route instance

DescriptorHelper::describe()

describe(OutputInterface $output, object $object, array $options = array()) Describes an object if supported. Available options are: * format: string, the output format name * raw_text: boolean, sets output type as raw Parameters OutputInterface $output object $object array $options Exceptions InvalidArgumentException when the given format is not supported

BaseMemcacheProfilerStorage deprecated::write()

bool write(Profile $profile) Saves a Profile. Parameters Profile $profile A Profile instance Return Value bool Write operation successful

SimpleAuthenticationProvider

class SimpleAuthenticationProvider implements AuthenticationProviderInterface Methods __construct(SimpleAuthenticatorInterface $simpleAuthenticator, UserProviderInterface $userProvider, $providerKey) TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. bool supports(TokenInterface $token) Checks whether this provider supports the given token. Details __construct(SimpleAuthenticatorInterface $simpleA

AbstractFormLoginAuthenticator::onAuthenticationFailure()

Response|null onAuthenticationFailure(Request $request, AuthenticationException $exception) Override to change what happens after a bad username/password is submitted. Parameters Request $request AuthenticationException $exception Return Value Response|null