EngineInterface::render()

string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance array $parameters An array of parameters to pass to the template Return Value string The evaluated template as a string Exceptions RuntimeException if the template cannot be rendered

TrueValidator deprecated

class TrueValidator extends IsTrueValidator deprecated since version 2.7, to be removed in 3.0. Use IsTrueValidator instead. 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) Check

ArgvInput::getParameterOption()

mixed getParameterOption(string|array $values, mixed $default = false, bool $onlyParams = false) Returns the value of a raw option (not parsed). 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 value(s) to look for in the raw parameters (can be an array) mixed $default The default value to return if no result is found bool $onlyParams Only check real parameters, skip thos

CustomNormalizer::normalize()

array|scalar normalize(object $object, string $format = null, array $context = array()) Normalizes an object into a set of arrays/scalars. Parameters object $object object to normalize string $format format the normalization result will be encoded as array $context Context options for the normalizer Return Value array|scalar

NumericNodeDefinition::min()

NumericNodeDefinition min(mixed $min) Ensures that the value is bigger than the given reference. Parameters mixed $min Return Value NumericNodeDefinition Exceptions InvalidArgumentException when the constraint is inconsistent

ValidatorTypeGuesser::guessRequiredForConstraint()

ValueGuess|null guessRequiredForConstraint(Constraint $constraint) Guesses whether a field is required based on the given constraint. Parameters Constraint $constraint The constraint to guess for Return Value ValueGuess|null The guess whether the field is required

TranslatorListener::onKernelFinishRequest()

onKernelFinishRequest(FinishRequestEvent $event) Parameters FinishRequestEvent $event

Route::addOptions()

Route addOptions(array $options) Adds options. This method implements a fluent interface. Parameters array $options The options Return Value Route The current Route instance

HashHandler

class HashHandler implements HandlerInterface CSS selector comment handler. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) bool handle(Reader $reader, TokenStream $stream) Details __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) Parameters TokenizerPatt

Token

class Token Represents a Token. Constants EOF_TYPE NAME_TYPE NUMBER_TYPE STRING_TYPE OPERATOR_TYPE PUNCTUATION_TYPE Properties $value $type $cursor Methods __construct(int $type, string $value, int $cursor) Constructor. string __toString() Returns a string representation of the token. bool test(array|int $type, string|null $value = null) Tests the current token for a type and/or a value. Details __construc