Merge pull request #28 from igorynia/master

Symfony 2.2 compatibility
Make SmartyBundle run on both Symfony 2.1 and 2.2 (does a runtime check of the Symfony version)