# Hook auf Cronjob

**URL:** <https://forum.shopware.com/t/hook-auf-cronjob/12873>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [24. April 2013 um 13:37 UTC](https://forum.shopware.com/t/hook-auf-cronjob/12873 "2013-04-24T13:37:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![troemmelt](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/troemmelt/32/71_2.png) [@troemmelt](https://forum.shopware.com/u/troemmelt)\
**Post date:** [24. April 2013 um 13:37 UTC](https://forum.shopware.com/t/hook-auf-cronjob/12873/1 "2013-04-24T13:37:02Z")

</div>

Hallo liebe Community, Ist es möglich einen Cronjob zu hooken?! Ich wollte gern den Birthday-Cronjob erweitern, und wollte eben diesen über ein Event/Hook erweitern. Leider funktioniert das nicht, oder ich kriege es nicht hin. Folgende Methoden habe ich schon versucht, ohne Erfolg: [quote] $this-\>subscribeEvent(‚Shopware\_CronJob\_Birthday‘, ‚onRun‘, ‚onBirthdayRun2‘, Enlight\_Hook\_HookHandler::TypeReplace, 0); $this-\>subscribeEvent(‚Shopware\_CronJob\_Birthday\_onRun‘, ‚onBirthdayRun3‘); $this-\>subscribeEvent(‚Shopware\_Plugins\_Core\_CronBirthday‘, ‚onRun‘, ‚onBirthdayRun‘, Enlight\_Hook\_HookHandler::TypeReplace, 0); $this-\>subscribeEvent(‚Shopware\_Plugins\_Core\_CronBirthday‘, ‚onBirthday4‘);[/quote] Hat wer einen Vorschlag? Vielen Dank Tom
