thanks to symfony2 for this file