btw .. if you want to make the functionality available outside of a Symfony2 Bundle context .. then you should move that code to a separate lib and pull it in here as a dep.