CsrfToken

class CsrfToken A CSRF token. Methods __construct(string $id, string $value) Constructor. string getId() Returns the ID of the CSRF token. string getValue() Returns the value of the CSRF token. string __toString() Returns the value of the CSRF token. Details __construct(string $id, string $value) Constructor. Parameters string $id The token ID string $value The actual token value string getId()

CsrfToken::getValue()

string getValue() Returns the value of the CSRF token. Return Value string The token value

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

CsrfToken::getId()

string getId() Returns the ID of the CSRF token. Return Value string The token ID

CsrfProviderInterface deprecated

interface CsrfProviderInterface deprecated since version 2.4, to be removed in 3.0. Use {@link \Symfony\Component\Security\Csrf\CsrfTokenManagerInterface} instead. Marks classes able to provide CSRF protection. You can generate a CSRF token by using the method generateCsrfToken(). To this method you should pass a value that is unique to the page that should be secured against CSRF attacks. This value doesn't necessarily have to be secret. Implementations of this interface are responsible

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

CredentialsExpiredException

class CredentialsExpiredException extends AccountStatusException CredentialsExpiredException is thrown when the user account credentials have expired. Methods TokenInterface getToken() Get the token. from AuthenticationException setToken(TokenInterface $token) Set the token. from AuthenticationException serialize() from AccountStatusException unserialize($str) from AccountStatusException string getMessageKey() Message key to be used by the translation component. arra

Crawler::xpathLiteral()

static string xpathLiteral(string $s) Converts string for XPath expressions. Escaped characters are: quotes (") and apostrophe ('). Examples: echo Crawler::xpathLiteral('foo " bar'); //prints 'foo " bar' echo Crawler::xpathLiteral("foo ' bar"); //prints "foo ' bar" echo Crawler::xpathLiteral('a\'b"c'); //prints concat('a', "'", 'b"c') Parameters string $s String to be escaped Return Value string Converted string

Crawler::text()

string text() Returns the node value of the first node of the list. Return Value string The node value Exceptions InvalidArgumentException When current node is empty

Crawler::slice()

Crawler slice(int $offset, int $length = null) Slices the list of nodes by $offset and $length. Parameters int $offset int $length Return Value Crawler A Crawler instance with the sliced nodes