symfony

Aug
10
How to deal with large Doctrine datasets - Symfony console command - OutOfMemoryError - PHP Fatal error:  Allowed memory size of * bytes exhausted

How to deal with large Doctrine datasets - Symfony console command - OutOfMemoryError - PHP Fatal error: Allowed memory size of * bytes exhausted

Imagine that you want to import your 5000+ items from database to ElasticSearch and you have restricted memory limits (e.
1 min read
Mar
08
How to set REMOTE_ADDR from HTTP_X_ORIGINAL_FORWARDED_FOR header when going through EZOIC proxy cache

How to set REMOTE_ADDR from HTTP_X_ORIGINAL_FORWARDED_FOR header when going through EZOIC proxy cache

Prerequisites: * kubernetes ingress * your varnish proxy cache * Symfony PHP application 1. Edit your global Kubernetes Ingress Config Map in namespace
1 min read
Oct
16
How to Search across multiple ElasticSearch Indexes with Symfony FOS\ElasticaBundle

How to Search across multiple ElasticSearch Indexes with Symfony FOS\ElasticaBundle

ElasticSearch v6.0 deprecated multiple types in one index. You can read more here: Removal of mapping types [https://www.
3 min read
Mar
05
Resolve not working Symfony ESI/SSI caching

Resolve not working Symfony ESI/SSI caching

If you have done this setup Symfony HttpCache [https://symfony.com/doc/current/http_cache.html] and ESI - Working
2 min read