-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load the "Symfony\Component\Form\FormRenderer" runtime issue #59
Comments
Here is a full stack trace:
|
I will inspect. One small thing first not related to the issue, note that So typical base.pug: !!!
html
head
meta(charset="UTF-8")
title
block title.
Welcome
block stylesheets
body
block body
block javascripts And login.pug structure: extends ../base
block title
Log in!
block body
form(method="post")
if error
.alert.alert-danger=error.messageKey|trans(error.messageData, 'security')
if app.user
.mb-3.
You are logged in as #{ app.user.username }, #[a(href=path('app_logout')) Logout]
h1.h3.mb-3.font-weight-normal Please sign in
label(for="inputEmail") Email
input(type="email" value=last_username name="email" id="inputEmail" class="form-control" required autofocus)
label(for="inputPassword") Password
input(type="password" name="password" id="inputPassword" class="form-control" required)
input(type="hidden" name="_csrf_token" value=csrf_token('authenticate'))
//- Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
//- See https://symfony.com/doc/current/security/remember_me.html
//- .checkbox.mb-3: label: input(type="checkbox" name="_remember_me") Remember me
button.btn.btn-lg.btn-primary(type="submit") Sign in |
I could reproduce, I will see if something changed in the |
This is likely due to changes in Twig services keys, the fix for |
The version 3.1.1 properly render |
Perfect support - error doesn't occur anymore. Cheers |
I had no other runtime problem until now with latest version, so I close this. Hope you enjoy pug-symfony in your project :) |
Hello,
I encountered an issue when:
Tried to use csrf validation in symfony with pug-php
Pug-Symfony version: 3.1
PHP version: 7.2.14
I expected to get:
Normal and working login validation
But I actually get:
Steps to reproduce:
php bin/console make:user
php bin/console make:auth
, withLogin form authenticator
style choosedThis is code from login.pug:
The line, that is causing trouble is
When I try to use (normally working with twig) function
csrf_token('authenticate')
there comes given error.Thanks!
The text was updated successfully, but these errors were encountered: