# Overwriting saveRegisterAction &amp; AddressFormType

**URL:** <https://forum.shopware.com/t/overwriting-saveregisteraction-amp-addressformtype/57770>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [30. Januar 2019 um 12:04 UTC](https://forum.shopware.com/t/overwriting-saveregisteraction-amp-addressformtype/57770 "2019-01-30T12:04:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkasperski](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dkasperski](https://forum.shopware.com/u/dkasperski)\
**Post date:** [30. Januar 2019 um 12:04 UTC](https://forum.shopware.com/t/overwriting-saveregisteraction-amp-addressformtype/57770/1 "2019-01-30T12:04:20Z")

</div>

Hi,

I’m trying to overwrite saveRegisterAction from Register controller and AddressFormType from AccountBundle in my custom plugin.

In first step I created subscriber for saveRegisterAction, then I created own AddressFormType wth this service configuration:

But unfortunately service container doesn’t see my service “shopware\_account.form.addressform.register\_plugin” and when the form type class is created by factory there are no objects (Shopware\_Components\_Config and&nbsp;ModelManager) there.

Thanks!
