add new Symfony factory syntax support

This resolves #21.