update to work with symfony 2.2 and later

i also notice that we never tagged any version. we should probably do a 1.0.0 after this is merged, ok?