add new Symfony factory syntax

This resolves #21.