I did following the following tutorial for custom hydration. https://techpunch.co.uk/development/create-custom-doctrine2-hydrator-symfony2
What I'm not happy with it. I dont want that the user of my bundle need to configure the hydrator in there config.yml.
Is it possible to add it as a service and tag it e.g.
<service id="bundle.hydration.custom" class="Your\Bundle\Hydrators\ListHydrator">
<argument type="service" id="helper_service" />
<tag name="doctrine.hydrator" alias="ListHydrator" />
</service>
Also I need other services in my hydrator so I need to register it as service.