add support for twig.extension and form.type_extension in service generator #308