FormExtension::getTokenParsers()

getTokenParsers() {@inheritdoc}

ContainerBuilder::hasExtension()

bool hasExtension(string $name) Checks if we have an extension. Parameters string $name The name of the extension Return Value bool If the extension exists

AcceptHeaderItem::setAttribute()

AcceptHeaderItem setAttribute(string $name, string $value) Set an attribute. Parameters string $name string $value Return Value AcceptHeaderItem

FormRenderer::renderCsrfToken()

string renderCsrfToken(string $tokenId) Renders a CSRF token. Use this helper for CSRF protection without the overhead of creating a form. Check the token in your action using the same token ID. $csrfProvider = $this->get('security.csrf.tokengenerator'); if (!$csrfProvider->isCsrfTokenValid('rmuser_'.$user->getId(), $token)) { throw new \RuntimeException('CSRF attack detected.'); } Parameters string $tokenId The ID of the CSRF token Return Value string A CSRF to

ParentNodeDefinitionInterface

interface ParentNodeDefinitionInterface An interface that must be implemented by nodes which can have children. Methods children() append(NodeDefinition $node) setBuilder(NodeBuilder $builder) Details children() append(NodeDefinition $node) Parameters NodeDefinition $node setBuilder(NodeBuilder $builder) Parameters NodeBuilder $builder

ResolvedTypeDataCollectorProxy::createView()

FormView createView(FormInterface $form, FormView $parent = null) Creates a new form view for a form of this type. Parameters FormInterface $form The form to create a view for FormView $parent The parent view or null Return Value FormView The created form view

AbstractFactory::addConfiguration()

addConfiguration(NodeDefinition $node) Parameters NodeDefinition $node

CsrfProviderInterface deprecated::isCsrfTokenValid()

bool isCsrfTokenValid(string $intention, string $token) Validates a CSRF token. Parameters string $intention The intention used when generating the CSRF token string $token The token supplied by the browser Return Value bool Whether the token supplied by the browser is correct

JsonResponse::create()

static Response create(mixed $data = null, int $status = 200, array $headers = array()) Factory method for chainability. Example: return JsonResponse::create($data, 200) ->setSharedMaxAge(300); Parameters mixed $data The json response data int $status The response status code array $headers An array of response headers Return Value Response

Component\Validator\Exception

Classes BadMethodCallException Base BadMethodCallException for the Validator component. ConstraintDefinitionException GroupDefinitionException InvalidArgumentException Base InvalidArgumentException for the Validator component. InvalidOptionsException MappingException MissingOptionsException NoSuchMetadataException UnexpectedTypeException ValidatorException Interfaces ExceptionInterface Base ExceptionInterface for the Validator component.