Inspired by https://github.com/KnpLabs/KnpGaufretteBundle