Skip to content

Commit

Permalink
Update scheduled_jobs.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed Mar 1, 2016
1 parent e7a1e4a commit eccc8a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Resources/doc/scheduled_jobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ Implement CronCommand
return new Job('my-scheduled-command');
}
}
For common intervals, you can also use one of the provided traits:

.. code-block :: php
class MyScheduledCommand extends ContainerAwareCommand implements CronCommand
{
use ScheduleEveryMinute;
// ...
}
Implement JobScheduler
----------------------
Expand Down

0 comments on commit eccc8a1

Please sign in to comment.