Integrates the Swap library with Symfony2