Code used for Symfony2 presentation