# Extend Core Services via custom plugin

**URL:** <https://forum.shopware.com/t/extend-core-services-via-custom-plugin/99722>\
**Category:** Programming (EN)\
**Tags:** programming\
**Created:** [17. Mai 2023 um 08:23 UTC](https://forum.shopware.com/t/extend-core-services-via-custom-plugin/99722 "2023-05-17T08:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yurii.k](https://avatars.discourse-cdn.com/v4/letter/y/90ced4/32.png) [@yurii.k](https://forum.shopware.com/u/yurii.k)\
**Post date:** [17. Mai 2023 um 08:23 UTC](https://forum.shopware.com/t/extend-core-services-via-custom-plugin/99722/1 "2023-05-17T08:23:28Z")

</div>

Hi!  
Is it possible to extend core services functionality via custom plugins?  
E.g. **Shopware\Core\Checkout\Cart\Address\AddressValidator** - I have to extend this class with my own **validate** method. I’m sure it is possible, but how I can to do it?  
Sure, I know, how to extend classes, but I don’t know, how I can register my class for make it working instead of core class.  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![yurii.k](https://avatars.discourse-cdn.com/v4/letter/y/90ced4/32.png) [@yurii.k](https://forum.shopware.com/u/yurii.k)\
**Post date:** [22. Mai 2023 um 08:50 UTC](https://forum.shopware.com/t/extend-core-services-via-custom-plugin/99722/2 "2023-05-22T08:50:04Z")

</div>

The question is closed.  
I did it through services.xml specifying the Shopware service as the service-id and my class as the service-class. It works)
