Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a cron task in Symfony2

Tags:

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 ?

like image 767
user2178964 Avatar asked May 30 '13 20:05

user2178964


People also ask

What is the use of * * * * * In cron?

It is a wildcard for every part of the cron schedule expression. So * * * * * means every minute of every hour of every day of every month and every day of the week .


1 Answers

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.

like image 117
julesbou Avatar answered Sep 18 '22 17:09

julesbou