Copied over from symfony-standard 2.3.0 release.