Extracted the Symfony 1 fallback code