Relative Content

Tag Archive for phpsymfony

Find unused symfony services

The project I’m working on has right now 7710 services. Autowiring is enabled and paths were not always excluded from autowiring, so right now we have a lot of services, which I’m sure, are not used as a service.
The big problem with that is the container build time.

Symfony enviroment variables in .env file doesn’t work in prod

I’m running a Symfony application within a Docker container. In the development environment, I can see all environment variables using the debug:container --env-vars command. However, when I switch to the production environment (also configured in the .env file and it works), running the same command returns “No environment variables are being used.”

Resource for Learning Symfony PHP

Currently learning through their Documentation does not find good yt video for symfony and learning some some of logic for form from symfonycasts documentation