ValidateRequestListener::onKernelRequest()

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

MoneyToLocalizedStringTransformer::transform()

mixed transform(mixed $value) Transforms a normalized format into a localized money string. Parameters mixed $value The value in the original representation Return Value mixed The value in the transformed representation Exceptions TransformationFailedException If the given value is not numeric or if the value can not be transformed.

ArgvInput::hasParameterOption()

bool hasParameterOption(string|array $values, bool $onlyParams = false) Returns true if the raw parameters (not parsed) contain a value. This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. Parameters string|array $values The values to look for in the raw parameters (can be an array) bool $onlyParams Only check real parameters, skip those following an end of options (--) signal Return Value bool true if the val

ProgressBar::getProgress()

int getProgress() Gets the current step position. Return Value int The progress bar step

HtmlDumper::leaveHash()

leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut) Dumps while leaving an hash. Parameters Cursor $cursor The Cursor position in the dump int $type A Cursor::HASH_* const for the type of hash string $class The object class, resource type or array count bool $hasChild When the dump of the hash has child item int $cut The number of items the hash has been cut by

Process::run()

int run(callable|null $callback = null) Runs the process. The callback receives the type of output (out or err) and some bytes from the output in real-time. It allows to have feedback from the independent process during execution. The STDOUT and STDERR are also available after the process is finished via the getOutput() and getErrorOutput() methods. Parameters callable|null $callback A PHP callback to run whenever there is some output available on STDOUT or STDERR Return Value

ChoiceValidator

class ChoiceValidator extends ConstraintValidator ChoiceValidator validates that the value is one of the expected values. 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

MergeCollectionListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

ArrayInput::hasParameterOption()

bool hasParameterOption(string|array $values, bool $onlyParams = false) Returns true if the raw parameters (not parsed) contain a value. This method is to be used to introspect the input parameters before they have been validated. It must be used carefully. Parameters string|array $values The values to look for in the raw parameters (can be an array) bool $onlyParams Only check real parameters, skip those following an end of options (--) signal Return Value bool true if the val

GroupSequenceProviderInterface

interface GroupSequenceProviderInterface Defines the interface for a group sequence provider. Methods array getGroupSequence() Returns which validation groups should be used for a certain state of the object. Details array getGroupSequence() Returns which validation groups should be used for a certain state of the object. Return Value array An array of validation groups