CssSelector deprecated::toXPath()

static string toXPath(mixed $cssExpr, string $prefix = 'descendant-or-self::') Translates a CSS expression to its XPath equivalent. Optionally, a prefix can be added to the resulting XPath expression with the $prefix parameter. Parameters mixed $cssExpr The CSS expression. string $prefix An optional prefix for the XPath expression. Return Value string

CssSelectorConverter

class CssSelectorConverter CssSelectorConverter is the main entry point of the component and can convert CSS selectors to XPath expressions. Methods __construct(bool $html = true) string toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') Translates a CSS expression to its XPath equivalent. Details __construct(bool $html = true) Parameters bool $html Whether HTML support should be enabled. Disable it for XML documents

CsvFileDumper

class CsvFileDumper extends FileDumper CsvFileDumper generates a csv formatted string representation of a message catalogue. Methods setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. from FileDumper setBackup(bool $backup) Sets backup flag. from FileDumper dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. from FileDumper string formatCatalogue(MessageCatalogue $messages, string $domai

CssSelector deprecated::enableHtmlExtension()

static enableHtmlExtension() Enables the HTML extension.

CssSelector deprecated

class CssSelector deprecated as of 2.8, will be removed in 3.0. Use the \Symfony\Component\CssSelector\CssSelectorConverter class instead. CssSelector is the main entry point of the component and can convert CSS selectors to XPath expressions. $xpath = CssSelector::toXpath('h1.foo'); This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Copyright (c) 2007-2012 Ian Bicking and contributors. See AUTHORS for mo

CsrfValidationListener

class CsrfValidationListener implements EventSubscriberInterface Methods static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. __construct($fieldName, CsrfTokenManagerInterface $tokenManager, $tokenId, $errorMessage, TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null) preSubmit(FormEvent $event) Details static array getSubscribedEvents()

CssSelector deprecated::disableHtmlExtension()

static disableHtmlExtension() Disables the HTML extension.

CsrfValidationListener::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

CsrfValidationListener::preSubmit()

preSubmit(FormEvent $event) Parameters FormEvent $event

CsrfTokenManagerInterface

interface CsrfTokenManagerInterface Manages CSRF tokens. Methods 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(string $tokenId) Invalidates the CSRF token with the given ID, if one exists. bool isTokenValid(CsrfToken $token) Returns whether the given CSRF token is valid. Details CsrfToken getToken(string