# Shopware()-\>Config()-\>get in Cronjob?

**URL:** <https://forum.shopware.com/t/shopware-config-get-in-cronjob/98905>\
**Category:** Shopware 5\
**Created:** [10. März 2023 um 14:40 UTC](https://forum.shopware.com/t/shopware-config-get-in-cronjob/98905 "2023-03-10T14:40:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [10. März 2023 um 14:40 UTC](https://forum.shopware.com/t/shopware-config-get-in-cronjob/98905/1 "2023-03-10T14:40:36Z")

</div>

Mir ist es jetzt mehrmals passiert, dass ich in einem Cronjob nicht mehr sauber auf die Config zugreifen kann.

Beispiel:

```auto
public function MeinCron(\Shopware_Components_Cron_CronJob $job) {
  $meinWert = Shopware()->Config()->get('meinWert');
}

```

Die Variable $meinWert bleibt ständig null, obwohl ein Wert in der Config steht. Hat sich hier etwas verändert? Aufgefallen im SW 5.7.16
