How to create a cron task in Symfony2

user2178964 picture user2178964 · May 30, 2013 · Viewed 40.3k times · Source

I have a little question, how create a simple cron task who call some service action in Symfony, who could be executed automatically each night ?

Answer

julesbou picture julesbou · May 31, 2013

Symfony2 does not manage cron tasks, simply because this is system level. That being said, you can create a command and register it as a cron task.