Fixed #5
Resolved #6
Resolved #4
Added changes for compatibility with Symphony 2.x.x