Add generator interface and fix test Symfony 2.3
Merge pull request #3 from donce96/master

Add generator interface and fix test Symfony 2.3