Component\Security\Core\Validator\Constraints

Classes UserPassword UserPasswordValidator

FragmentListener::onKernelRequest()

onKernelRequest(GetResponseEvent $event) Fixes request attributes when the path is '/_fragment'. Parameters GetResponseEvent $event A GetResponseEvent instance Exceptions AccessDeniedHttpException if the request does not come from a trusted IP.

Definition::isAbstract()

bool isAbstract() Whether this definition is abstract, that means it merely serves as a template for other definitions. Return Value bool

ButtonBuilder::getForm()

FormInterface getForm() Creates the button. Return Value FormInterface The form

File

class File extends SplFileInfo A file in the file system. Methods __construct(string $path, bool $checkPath = true) Constructs a new file from the given path. string|null guessExtension() Returns the extension based on the mime type. string|null getMimeType() Returns the mime type of the file. File move(string $directory, string $name = null) Moves the file to a new location. Details __construct(string $path, bool $checkPath = true)

PropertyPathIterator::isIndex()

bool isIndex() Returns whether the current element in the property path is an array index. Return Value bool

History::add()

add(Request $request) Adds a Request to the history. Parameters Request $request A Request instance

XliffFileLoader

class XliffFileLoader implements LoaderInterface XliffFileLoader loads translations from XLIFF files. Methods MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Details MessageCatalogue load(mixed $resource, string $locale, string $domain = 'messages') Loads a locale. Parameters mixed $resource A resource string $locale A locale string $domain The domain Return Value MessageCatalogue A MessageC

ValidateRequestListener::onKernelRequest()

onKernelRequest(GetResponseEvent $event) Performs the validation. Parameters GetResponseEvent $event

DateValidator

class DateValidator extends ConstraintValidator Constants PRETTY_DATE Whether to format {@link \DateTime} objects as RFC-3339 dates ("Y-m-d H:i:s"). OBJECT_TO_STRING Whether to cast objects with a "__toString()" method to strings. PATTERN Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator static bool checkDate(int $year, int $month, int $day) Checks whether a date is valid. validate(mixed $value, Constr