Component\PropertyAccess\Exception

Classes InvalidPropertyPathException Thrown when a property path is malformed. NoSuchPropertyException Thrown when a property cannot be found. OutOfBoundsException Base OutOfBoundsException for the PropertyAccess component. RuntimeException Base RuntimeException for the PropertyAccess component. UnexpectedTypeException Thrown when a value does not match an expected type. Interfaces ExceptionInterface Marker interface for the PropertyAccess component.

FormRegistryInterface::getType()

ResolvedFormTypeInterface getType(string $name) Returns a form type by name. This methods registers the type extensions from the form extensions. Parameters string $name The name of the type Return Value ResolvedFormTypeInterface The type Exceptions InvalidArgumentException if the type can not be retrieved from any extension

MinuteTransformer::getReverseMatchingRegExp()

string getReverseMatchingRegExp(int $length) Returns a reverse matching regular expression of a string generated by format(). Parameters int $length The length of the value to be reverse matched Return Value string The reverse matching regular expression

LocaleValidator

class LocaleValidator extends ConstraintValidator Validates whether a value is a valid locale code. 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. Methods initialize(ExecutionContextInterface $context) Initializes the constraint validator. from ConstraintValidator validate(mixed $value, Constraint $constraint) Checks if the passed value is va

PdoSessionHandler::write()

write($sessionId, $data) {@inheritdoc} Parameters $sessionId $data

TimezoneType::configureOptions()

configureOptions(OptionsResolver $resolver) Configures the options for this type. Parameters OptionsResolver $resolver The resolver for the options

StoreInterface

interface StoreInterface Interface implemented by HTTP cache stores. Methods Response|null lookup(Request $request) Locates a cached Response for the Request provided. string write(Request $request, Response $response) Writes a cache entry to the store for the given Request and Response. invalidate(Request $request) Invalidates all cache entries that match the request. bool|string lock(Request $request) Locks the cache for a given Request. bool unlock(Request $request

TraceableControllerResolver::getController()

callable|false getController(Request $request) Returns the Controller instance associated with a Request. As several resolvers can exist for a single application, a resolver must return false when it is not able to determine the controller. The resolver must only throw an exception when it should be able to load controller but cannot because of some errors made by the developer. Parameters Request $request A Request instance Return Value callable|false A PHP callable representi

FormConfigBuilder::setCompound()

FormConfigBuilderInterface setCompound(bool $compound) Sets whether the form should be compound. Parameters bool $compound Whether the form should be compound Return Value FormConfigBuilderInterface The configuration object

AbstractRendererEngine::getResourceHierarchyLevel()

int|bool getResourceHierarchyLevel(FormView $view, array $blockNameHierarchy, int $hierarchyLevel) Returns the hierarchy level at which a resource can be found. A block hierarchy is an array which starts with the root of the hierarchy and continues with the child of that root, the child of that child etc. The following is an example for a block hierarchy: formwidget textwidget url_widget The second parameter $hierarchyLevel determines the level of the hierarchy that should be r