Skip to content

Tag: symfony

Show form errors

I would like to show error messages in the top of my registration form. I created my registration form:

Register
{{ form_start(form) }} {{ …

My profiler toolbar isn’t showing up in symfony 4.3.1

In my .env file, I have specified my app environment to be dev and debug to be true like so: In my config/packages/dev/web_profiler.yaml file I have the following: The routing within config/routes/dev/web_profiler.yaml seems to be fine: So when I run the server with symfony server:start everything is fine, bu…

Correct way to extend classes with Symfony autowiring

I’m wondering if this is the correct way to extend and use classes with Symfonies autowiring. For example, I have a BaseClass that instantiates and auto wires the entity manager. Then I have a subclass that extends the BaseClass and needs access that method. So I let it autowire again and pass it to the…

Panther Chrome WebDriver : Full screen?

In my functional test of my symfony 4 application, i use the Chrome Webdriver with PANTHER_NO_HEADLESS=1 to see what happen. My problem is : Chrome browser starting with Debug Tool (F12) and not in full screen. This is a problem because i want to test elements that appears only on full screen. My test : Comma…