Skip to content
Advertisement

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, but the profiler doesn’t appear. Did I miss something that enables that

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 parent constructor. Now I’m wondering

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 : Command : Then How can

Symfony 4.3: User Deprecated: The SymfonyBundleTwigBundleLoaderFilesystemLoader class is deprecated since version 4.3 and will be removed in 5.0 …

After upgrading to Symfony 4.3, I’m getting the following 22 deprecation warnings: User Deprecated: The SymfonyBundleTwigBundleLoaderFilesystemLoader class is deprecated since version 4.3 and will be removed in 5.0; use Twig notation for templates instead. User Deprecated: The “templating.locator” service is deprecated since Symfony 4.3 and will be removed in 5.0. User Deprecated: The SymfonyBundleFrameworkBundleTemplatingLoaderTemplateLocator class is deprecated since version 4.3

Advertisement