Skip to content

Tag: symfony5

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

Where is the preload.php file, and how is it generated?

With Symfony 5.1 and PHP 7.4, I want to add preload.php in opcache. Symfony documentation : During container compilation (e.g. when running the cache:clear command), Symfony generates a file called preload.php in the config/ directory with the list of classes to preload. opcache.preload=/path/to/project/confi…

Can’t debug with Symfony CLI / Xdebug

I am running my server with symfony server:start command and I would like to debug it as usual with PHP remote debug provided by PhpStorm. I’ve configured my Xdebug with these: I have installed the debugtool for my browser and configured my server in the PHP remote debug window. When I’m trying to…