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

YearTransformer::format()

string format(DateTime $dateTime, int $length) Format a value using a configured DateTime as date/time source. Parameters DateTime $dateTime A DateTime object to be used to generate the formatted value int $length The formatted value string length Return Value string The formatted value

SerializerExtractor

class SerializerExtractor implements PropertyListExtractorInterface Lists available properties using Symfony Serializer Component metadata. Methods __construct(ClassMetadataFactoryInterface $classMetadataFactory) string[]|null getProperties(string $class, array $context = array()) Gets the list of properties available for the given class. Details __construct(ClassMetadataFactoryInterface $classMetadataFactory) Parameters ClassMetadataFac

CheckDefinitionValidityPass

class CheckDefinitionValidityPass implements CompilerPassInterface This pass validates each definition individually only taking the information into account which is contained in the definition itself. Later passes can rely on the following, and specifically do not need to perform these checks themselves: non synthetic, non abstract services always have a class set synthetic services are always public Methods process(ContainerBuilder $container) Processes the ContainerBuilder to validate