RSS Feed/News Calling an addons service from cron

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,649
Points
823

Reputation:

My addon that I am writing has a service which generates PDF documents. I need this to be run by a cron at regular intervals and will generate the PDF files for me. What I am struggling with is just how I would call that service from the cron?

would it simply be the following?
PHP:

\XF::app()->service('myaddon:theService', $arg1, $arg2, $arg3);

Continue reading...
 
Status
Not open for further replies.
Top