A simple example using the extension api in Symfony