# Pluginentwicklung: Den Cronjob mit Plugin Config Daten befüllen

**URL:** <https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612>\
**Category:** Programmierung\
**Created:** [29. März 2016 um 09:03 UTC](https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612 "2016-03-29T09:03:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ipman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/ipman/32/10218_2.png) [@ipman](https://forum.shopware.com/u/ipman)\
**Post date:** [29. März 2016 um 09:03 UTC](https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612/1 "2016-03-29T09:03:51Z")

</div>

Ich habe im Moment das Problem, dass ich in meiner Bootstrap die Funktion für den Cronjob nicht mit der Plugin Konfiguration befüllen kann, so wie ich es auch im Frontend machen kann. Wie komme ich an die Config?

---

<div class="post-metadata">

**Author:** ![steinsoftware](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@steinsoftware](https://forum.shopware.com/u/steinsoftware)\
**Post date:** [29. März 2016 um 14:11 UTC](https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612/2 "2016-03-29T14:11:41Z")

</div>

$this-\>Config()-\>configName

---

<div class="post-metadata">

**Author:** ![ipman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/ipman/32/10218_2.png) [@ipman](https://forum.shopware.com/u/ipman)\
**Post date:** [29. März 2016 um 14:35 UTC](https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612/3 "2016-03-29T14:35:54Z")

</div>

Okay, das war eventell zu simpel für mich. Habe es die ganze Zeit über Umwege versucht. Vielen Dank

---

<div class="post-metadata">

**Author:** ![TeichDatensysteme](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@TeichDatensysteme](https://forum.shopware.com/u/TeichDatensysteme)\
**Post date:** [30. März 2016 um 12:01 UTC](https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612/4 "2016-03-30T12:01:49Z")

</div>

Vielleicht auch noch zu erwähnen, wenn Du direkt einen Vorgabewert haben möchtest, falls irgendetwas nicht gesetzt ist, ohne irgendwelche Zusätze

```
$foo = $this->Config()->get('formKey', 'defaultValue');

```

Schöne Grüße,  
Niklas

---

<div class="post-metadata">

**Author:** ![ipman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/ipman/32/10218_2.png) [@ipman](https://forum.shopware.com/u/ipman)\
**Post date:** [30. März 2016 um 12:55 UTC](https://forum.shopware.com/t/pluginentwicklung-den-cronjob-mit-plugin-config-daten-befullen/35612/5 "2016-03-30T12:55:10Z")

</div>

> [@TeichDatensysteme schrieb:](https://forum.shopware.com/profile/15861/TeichDatensysteme "TeichDatensysteme")
> 
> Vielleicht auch noch zu erwähnen, wenn Du direkt einen Vorgabewert haben möchtest, falls irgendetwas nicht gesetzt ist, ohne irgendwelche Zusätze
> 
> $foo = $this-\>Config()-\>get(‚formKey‘, ‚defaultValue‘);
> 
> Schöne Grüße,  
> Niklas&nbsp;

Auch das ist gut zu wissen. Vielen Dank.
