Implementation of Dolist library for Symfony2