try to make it works with symfony 3.4+, failed at the moment