@bschussek give this API :

https://github.com/symfony/symfony/issues/4683#issuecomment-13894631