Skip to content

Tag: symfony

Symfony 5.3 custom FileLoader not working

I want to run a multi tenant Symfony (version 5.3) applications and for it I want to implement a custom translation file loader. According to the Symfony documentation it should be very easy: https://symfony.com/doc/current/reference/dic_tags.html#dic-tags-translation-loader However, it is not working for me.…

How to pass data to symfony form class without using static

I’ve got form class and i have to pass args to it but i can’t do that because i am using createNamed function which requires me to use namespace string. code: I can’t pass this data into entity, because it is an arguments for creating the form fields rather than data model. Answer Have you t…

disable symfony 5 database connection

I have the default config in my symfonu project I have this line at .env file and I get this error Of course I dont have not isntalled postgres, and I dont need a database for this project, How I cant fix this error I tried to comment the .env file line but I get another error Answer Commenting the