Allow fully qualified classnames for gateway type

This enables support for fully qualified classnames as gateways, just like it's already supported by the DependencyInjectionExtension.