Lexer

class Lexer Lexes an expression. Methods TokenStream tokenize(string $expression) Tokenizes an expression. Details TokenStream tokenize(string $expression) Tokenizes an expression. Parameters string $expression The expression to tokenize Return Value TokenStream A token stream instance Exceptions SyntaxError

ServerParams

class ServerParams Methods __construct(RequestStack $requestStack = null) bool hasPostMaxSizeBeenExceeded() Returns true if the POST max size has been exceeded in the request. null|int getPostMaxSize() Returns maximum post size in bytes. string getNormalizedIniPostMaxSize() Returns the normalized "postmaxsize" ini setting. mixed getContentLength() Returns the content length of the request. Details __construct(RequestStack $requestStack

Component\Stopwatch

Classes Section Stopwatch Stopwatch provides a way to profile code. StopwatchEvent Represents an Event managed by Stopwatch. StopwatchPeriod Represents an Period for an Event.

Data::withMaxItemsPerDepth()

Data withMaxItemsPerDepth(int $maxItemsPerDepth) Limits the number of elements per depth level. Parameters int $maxItemsPerDepth The max number of items dumped per depth level Return Value Data A clone of $this

ExecutionContextInterface

interface ExecutionContextInterface The context of a validation run. The context collects all violations generated during the validation. By default, validators execute all validations in a new context: $violations = $validator->validate($object); When you make another call to the validator, while the validation is in progress, the violations will be isolated from each other: public function validate($value, Constraint $constraint) { $validator = $this->context->getValidator();

CsrfTokenManager

class CsrfTokenManager implements CsrfTokenManagerInterface Default implementation of {@link CsrfTokenManagerInterface}. Methods __construct(TokenGeneratorInterface $generator = null, TokenStorageInterface $storage = null) Creates a new CSRF provider using PHP's native session storage. CsrfToken getToken(string $tokenId) Returns a CSRF token for the given ID. CsrfToken refreshToken(string $tokenId) Generates a new token value for the given ID. string|null removeToken(strin

FieldVote

class FieldVote This class is a lightweight wrapper around field vote requests which does not violate any interface contracts. Methods __construct($domainObject, $field) getDomainObject() getField() Details __construct($domainObject, $field) Parameters $domainObject $field getDomainObject() getField()

Component\Routing\Generator

Namespaces Symfony\Component\Routing\Generator\Dumper Classes UrlGenerator UrlGenerator can generate a URL or a path for any route in the RouteCollection based on the passed parameters. Interfaces ConfigurableRequirementsInterface ConfigurableRequirementsInterface must be implemented by URL generators that can be configured whether an exception should be generated when the parameters do not match the requirements. It is also possible to disable the requirements check for URL generati

AbstractType::finishView()

finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. This method gets called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. When this method is called, views of the form's children have already been built and finished and can be accessed. You should only implement such logic in this method that actually accesses child views. For everything else you are recommended to implement {@link buil

Response::setTtl()

Response setTtl(int $seconds) Sets the response's time-to-live for shared caches. This method adjusts the Cache-Control/s-maxage directive. Parameters int $seconds Number of seconds Return Value Response