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

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

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

CssSelector deprecated::enableHtmlExtension()

static enableHtmlExtension() Enables the HTML extension.

CssSelector deprecated::disableHtmlExtension()

static disableHtmlExtension() Disables 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::preSubmit()

preSubmit(FormEvent $event) Parameters FormEvent $event

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

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()

CsrfTokenManagerInterface::removeToken()

string|null removeToken(string $tokenId) Invalidates the CSRF token with the given ID, if one exists. Parameters string $tokenId The token ID Return Value string|null Returns the removed token value if one existed, NULL otherwise