add new Symfony factory syntax support

This resolves #21.
``if`` is enough as the previous if returns