FormFactory::createBuilder()

FormBuilderInterface createBuilder(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form builder. Parameters string $type The type of the form mixed $data The initial data array $options The options Return Value FormBuilderInterface The form builder Exceptions InvalidOptionsException if any given option is not applicable to the given type

BaseDateTimeTransformer

class BaseDateTimeTransformer implements DataTransformerInterface Methods __construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. Details __construct(string $inputTimezone = null, string $outputTimezone = null) Constructor. Parameters string $inputTimezone The name of the input timezone string $outputTimezone The name of the output timezone Exceptions UnexpectedTypeException if a timezone is not a string InvalidAr

UnexpectedTypeException

class UnexpectedTypeException extends InvalidArgumentException Thrown when a method argument had an unexpected type. Methods __construct($value, $expectedType) Details __construct($value, $expectedType) Parameters $value $expectedType

AutowireServiceResource

class AutowireServiceResource implements SelfCheckingResourceInterface, Serializable Methods __construct($class, $path, array $autowiringMetadata) bool isFresh(int $timestamp) Returns true if the resource has not been updated since the given timestamp. string __toString() Returns a string representation of the Resource. serialize() unserialize($serialized) getResource() deprecated Details __construct($class, $path, array $autowi

ArrayToPartsTransformer

class ArrayToPartsTransformer implements DataTransformerInterface Methods __construct(array $partMapping) mixed transform($array) Transforms a value from the original representation to a transformed representation. mixed reverseTransform($array) Transforms a value from the transformed representation to its original representation. Details __construct(array $partMapping) Parameters array $partMapping mixed

Translator::getCatalogue()

MessageCatalogueInterface getCatalogue(string|null $locale = null) Gets the catalogue by locale. Parameters string|null $locale The locale or null to use the default Return Value MessageCatalogueInterface Exceptions InvalidArgumentException If the locale contains invalid characters

SessionUnavailableException

class SessionUnavailableException extends AuthenticationException This exception is thrown when no session is available. Possible reasons for this are: a) The session timed out because the user waited too long. b) The user has disabled cookies, and a new session is started on each request. Methods TokenInterface getToken() Get the token. from AuthenticationException setToken(TokenInterface $token) Set the token. from AuthenticationException serialize() from AuthenticationEx

FormDataCollectorInterface::buildPreliminaryFormTree()

buildPreliminaryFormTree(FormInterface $form) Assembles the data collected about the given form and its children as a tree-like data structure. The result can be queried using {@link getData()}. Parameters FormInterface $form A root form

SplCaster::castFileObject()

static castFileObject(SplFileObject $c, array $a, Stub $stub, $isNested) Parameters SplFileObject $c array $a Stub $stub $isNested

CsrfToken

class CsrfToken A CSRF token. Methods __construct(string $id, string $value) Constructor. string getId() Returns the ID of the CSRF token. string getValue() Returns the value of the CSRF token. string __toString() Returns the value of the CSRF token. Details __construct(string $id, string $value) Constructor. Parameters string $id The token ID string $value The actual token value string getId()