Component\Form\Extension\Csrf

Namespaces Symfony\Component\Form\Extension\Csrf\CsrfProviderSymfony\Component\Form\Extension\Csrf\EventListenerSymfony\Component\Form\Extension\Csrf\Type Classes CsrfExtension This extension protects forms by using a CSRF token.

FormTypeCsrfExtension::finishView()

finishView(FormView $view, FormInterface $form, array $options) Adds a CSRF field to the root form view. Parameters FormView $view The view FormInterface $form The form array $options The options

NoAceFoundException

class NoAceFoundException extends Exception This exception is thrown when we cannot locate an ACE that matches the combination of permission masks and security identities. Methods __construct() Details __construct()

PropelExtension

class PropelExtension extends AbstractExtension Represents the Propel form extension, which loads the Propel functionality. Methods FormTypeInterface getType(string $name) Returns a type by name. from AbstractExtension bool hasType(string $name) Returns whether the given type is supported. from AbstractExtension FormTypeExtensionInterface[] getTypeExtensions(string $name) Returns the extensions for the given type. from AbstractExtension bool hasTypeExtensions(string $name) Re

Configuration

class Configuration implements ConfigurationInterface This class contains the configuration information for the bundle. This information is solely responsible for how the different configuration sections are normalized, and merged. Methods TreeBuilder getConfigTreeBuilder() Generates the configuration tree builder. Details TreeBuilder getConfigTreeBuilder() Generates the configuration tree builder. Return Value TreeBuilder The tree builder

DefaultTranslator deprecated::trans()

string trans(string $id, array $parameters = array(), string|null $domain = null, string|null $locale = null) Interpolates the given message. Parameters are replaced in the message in the same manner that {@link strtr()} uses. Example usage: $translator = new DefaultTranslator(); echo $translator->trans( 'This is a {{ var }}.', array('{{ var }}' => 'donkey') ); // -> This is a donkey. Parameters string $id The message id (may also be an object that can be ca

AclInterface

interface AclInterface implements Serializable This interface represents an access control list (ACL) for a domain object. Each domain object can have exactly one associated ACL. An ACL contains all access control entries (ACE) for a given domain object. In order to avoid needing references to the domain object itself, implementations use ObjectIdentity implementations as an additional level of indirection. Methods array getClassAces() Returns all class-based ACEs associated with this AC

CsrfExtension

class CsrfExtension extends AbstractExtension This extension protects forms by using a CSRF token. Methods FormTypeInterface getType(string $name) Returns a type by name. from AbstractExtension bool hasType(string $name) Returns whether the given type is supported. from AbstractExtension FormTypeExtensionInterface[] getTypeExtensions(string $name) Returns the extensions for the given type. from AbstractExtension bool hasTypeExtensions(string $name) Returns whether this extens

PropertyAccessorInterface::setValue()

setValue(object|array $objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value) Sets the value at the end of the property path of the object graph. Example: use Symfony\Component\PropertyAccess\PropertyAccess; $propertyAccessor = PropertyAccess::createPropertyAccessor(); echo $propertyAccessor->setValue($object, 'child.name', 'Fabien'); // equals echo $object->getChild()->setName('Fabien'); This method first tries to find a public setter for each property

ValidationVisitor deprecated

class ValidationVisitor implements ValidationVisitorInterface, GlobalExecutionContextInterface deprecated since version 2.5, to be removed in 3.0. Default implementation of {@link ValidationVisitorInterface} and {@link GlobalExecutionContextInterface}. Methods __construct(mixed $root, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, TranslatorInterface $translator, string|null $translationDomain = null, array $objectInitializers = arra