ConsoleTerminateEvent::setExitCode()

setExitCode(int $exitCode) Sets the exit code. Parameters int $exitCode The command exit code

ValidatorInterface::inContext()

ContextualValidatorInterface inContext(ExecutionContextInterface $context) Returns a validator in the given execution context. The returned validator adds all generated violations to the given context. Parameters ExecutionContextInterface $context The execution context Return Value ContextualValidatorInterface The validator for that context

Component\Security\Core\Authentication\Provider

Classes AnonymousAuthenticationProvider AnonymousAuthenticationProvider validates AnonymousToken instances. DaoAuthenticationProvider DaoAuthenticationProvider uses a UserProviderInterface to retrieve the user for a UsernamePasswordToken. PreAuthenticatedAuthenticationProvider Processes a pre-authenticated authentication request. RememberMeAuthenticationProvider UserAuthenticationProvider UserProviderInterface retrieves users for UsernamePasswordToken tokens. Interfaces A

FormBuilder::create()

FormBuilderInterface create(string $name, string|null $type = null, array $options = array()) Creates a form builder. Parameters string $name The name of the form or the name of the property string|null $type The type of the form or null if name is a property array $options The options Return Value FormBuilderInterface The created builder

UriSigner

class UriSigner Signs URIs. Methods __construct(string $secret) Constructor. string sign(string $uri) Signs a URI. bool check(string $uri) Checks that a URI contains the correct hash. Details __construct(string $secret) Constructor. Parameters string $secret A secret string sign(string $uri) Signs a URI. The given URI is signed by adding a _hash query string parameter which value depends on

InMemoryUserProvider::supportsClass()

bool supportsClass(string $class) Whether this provider supports the given user class. Parameters string $class Return Value bool

Output::getFormatter()

OutputFormatterInterface getFormatter() Returns current output formatter instance. Return Value OutputFormatterInterface

MessageCatalogue::defines()

bool defines(string $id, string $domain = 'messages') Checks if a message has a translation (it does not take into account the fallback mechanism). Parameters string $id The message id string $domain The domain name Return Value bool true if the message has a translation, false otherwise

ArgumentValueResolverInterface::resolve()

Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Parameters Request $request ArgumentMetadata $argument Return Value Generator

ExecutionContextInterface::getObject()

object|null getObject() Returns the currently validated object. If the validator is currently validating a class constraint, the object of that class is returned. If it is a validating a property or getter constraint, the object that the property/getter belongs to is returned. In other cases, null is returned. Return Value object|null The currently validated object or null