# Shopware 5 methods alternative in Shopware 6

**URL:** https://forum.shopware.com/t/shopware-5-methods-alternative-in-shopware-6/87834
**Category:** Shopware 6 (English)
**Created:** [22. Mai 2021 um 19:30 UTC](https://forum.shopware.com/t/shopware-5-methods-alternative-in-shopware-6/87834 "2021-05-22T19:30:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shivam201312](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@shivam201312](https://forum.shopware.com/u/shivam201312)
#### Post date: [22. Mai 2021 um 19:30 UTC](https://forum.shopware.com/t/shopware-5-methods-alternative-in-shopware-6/87834/1 "2021-05-22T19:30:41Z")

</div>

Hi , i working on upgrading module from shopware 5 to shopware 6 . what will be the best alternative to the following shopware 5 methods in shopware 6.

```auto
Shopware()->Config()->getByNamespace('Plugin-name', 'i-think-configname');
Shopware()->Db()->fetchRow

```

i want to call these methods in service that i have created .i am using service in admin controller
