# Accessing default context in version 6.1.0

**URL:** https://forum.shopware.com/t/accessing-default-context-in-version-6-1-0/63510
**Category:** Programming (EN)
**Created:** [12. Dezember 2019 um 14:19 UTC](https://forum.shopware.com/t/accessing-default-context-in-version-6-1-0/63510 "2019-12-12T14:19:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![risto\_kekovic](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@risto\_kekovic](https://forum.shopware.com/u/risto_kekovic)
#### Post date: [12. Dezember 2019 um 14:19 UTC](https://forum.shopware.com/t/accessing-default-context-in-version-6-1-0/63510/1 "2019-12-12T14:19:52Z")

</div>

Hello!

I am trying to migrate a plugin that was compatible with Shopware 6.0.0 to the new version 6.1.0 RC2. However, I am having an issue with accessing context. The problem is that the method&nbsp;\Shopware\Core\Framework\Context::createDefaultContext() has been marked internal in this new release, and plugin code heavily depends on it, and not only in controllers, for which I know that context can be passed into, but also services. In the documentation on Shopware 6, it still stands that the context, if not provided, can be manually created by calling this static method. What I want to know is if this is true, or will the plugin fail the review if I keep these methods calls in the code. If so, could you please provide another way to access default context when there is no way to retrieve one from the request?

Thanks in advance!

Risto

---

<div class="post-metadata">

### Author: ![Misengo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/misengo/32/21446_2.png) [@Misengo](https://forum.shopware.com/u/Misengo)
#### Post date: [30. August 2020 um 09:17 UTC](https://forum.shopware.com/t/accessing-default-context-in-version-6-1-0/63510/2 "2020-08-30T09:17:31Z")

</div>

I found a few plugins in the store by now which are using this internal method.
