SessionCsrfProvider deprecated

class SessionCsrfProvider extends DefaultCsrfProvider deprecated since version 2.4, to be removed in 3.0. Use {@link \Symfony\Component\Security\Csrf\CsrfTokenManager} in combination with {@link \Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage} instead. This provider uses a Symfony Session object to retrieve the user's session ID. Methods __construct(Session $session, string $secret) Initializes the provider with a Session object and a secret value. string gener

Locale::setDefaultFallback()

static setDefaultFallback(string $locale) Sets the default fallback locale. The default fallback locale is used as fallback for locales that have no fallback otherwise. Parameters string $locale The default fallback locale See also getFallback()

SessionListener

class SessionListener extends SessionListener Sets the session in the request. Methods onKernelRequest(GetResponseEvent $event) from SessionListener static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. from SessionListener __construct(ContainerInterface $container) Details onKernelRequest(GetResponseEvent $event) Parameters GetResponseEvent $event static arra

FormHelper::widget()

string widget(FormView $view, array $variables = array()) Renders the HTML for a given view. Example usage: <?php echo $view['form']->widget($form) ?> You can pass options during the call: <?php echo $view['form']->widget($form, array('attr' => array('class' => 'foo'))) ?> <?php echo $view['form']->widget($form, array('separator' => '+++++')) ?> Parameters FormView $view The view for which to render the widget array $variables Additional v

CachingFactoryDecorator::generateHash()

static string generateHash(mixed $value, string $namespace = '') Generates a SHA-256 hash for the given value. Optionally, a namespace string can be passed. Calling this method will the same values, but different namespaces, will return different hashes. Parameters mixed $value The value to hash string $namespace Optional. The namespace Return Value string The SHA-256 hash

FormHelper::start()

string start(FormView $view, array $variables = array()) Renders the form start tag. Example usage templates: <?php echo $view['form']->start($form) ?>> Parameters FormView $view The view for which to render the start tag array $variables Additional variables passed to the template Return Value string The HTML markup

Translator::nodeToXPath()

XPathExpr nodeToXPath(NodeInterface $node) Parameters NodeInterface $node Return Value XPathExpr Exceptions ExpressionErrorException

LazyLoadingFragmentHandler::render()

string|null render(string|ControllerReference $uri, string $renderer = 'inline', array $options = array()) Renders a URI and returns the Response content. Available options: ignore_errors: true to return an empty string in case of an error Parameters string|ControllerReference $uri A URI as a string or a ControllerReference instance string $renderer The renderer name array $options An array of options Return Value string|null The Response content or null when the Response is s

EmailType::getParent()

string|null getParent() Returns the name of the parent type. Return Value string|null The name of the parent type if any, null otherwise

InputOption::setDefault()

setDefault(mixed $default = null) Sets the default value. Parameters mixed $default The default value Exceptions LogicException When incorrect default value is given