Gaining application/module context from a symfony task
Posted
by Martin Chatterton
on Stack Overflow
See other posts from Stack Overflow
or by Martin Chatterton
Published on 2010-06-04T09:30:04Z
Indexed on
2010/06/08
15:22 UTC
Read the original article
Hit count: 240
I have written a reporting suite, and I have a specific report that builds a CSV file. Serving this file via a browser on demand isn't an issue, but I need to be able to build this CSV file nightly, and email round a link to be able to download it.
Essentially, I need to be able to replace a specific action with a symfony task, run via cron. So how do I gain application/module context from a symfony task? And secondly, how would I invoke the SwiftMailer library from a symfony task?
I'm using symfony v1.4.4 and PHP v.5.2.13. Thanks in advance for your help.
© Stack Overflow or respective owner