|
1 | 1 | Scheduler |
2 | 2 | ========= |
3 | 3 |
|
4 | | -.. versionadded:: 6.3 |
5 | | - |
6 | | - The Scheduler component was introduced in Symfony 6.3 |
7 | | - |
8 | 4 | The scheduler component manages task scheduling within your PHP application, like |
9 | 5 | running a task each night at 3 AM, every two weeks except for holidays or any |
10 | 6 | other custom schedule you might need. |
@@ -143,10 +139,6 @@ It uses the same syntax as the `cron command-line utility`_:: |
143 | 139 | // optionally you can define the timezone used by the cron expression |
144 | 140 | RecurringMessage::cron('* * * * *', new Message(), new \DateTimeZone('Africa/Malabo')); |
145 | 141 |
|
146 | | -.. versionadded:: 6.4 |
147 | | - |
148 | | - The feature to define the cron timezone was introduced in Symfony 6.4. |
149 | | - |
150 | 142 | Before using it, you must install the following dependency: |
151 | 143 |
|
152 | 144 | .. code-block:: terminal |
@@ -266,9 +258,9 @@ the Messenger component: |
266 | 258 | .. image:: /_images/components/scheduler/generate_consume.png |
267 | 259 | :alt: Symfony Scheduler - generate and consume |
268 | 260 |
|
269 | | -.. versionadded:: 6.4 |
| 261 | +.. tip:: |
270 | 262 |
|
271 | | - Since version 6.4, you can define your messages via a ``callback`` via the |
| 263 | + You can also define your messages via a ``callback`` using the |
272 | 264 | :class:`Symfony\\Component\\Scheduler\\Trigger\\CallbackMessageProvider`. |
273 | 265 |
|
274 | 266 | Debugging the Schedule |
@@ -300,10 +292,6 @@ recurring messages. You can narrow down the list to a specific schedule: |
300 | 292 | # use the --all option to also display the terminated recurring messages |
301 | 293 | $ php bin/console --all |
302 | 294 |
|
303 | | -.. versionadded:: 6.4 |
304 | | - |
305 | | - The ``--date`` and ``--all`` options were introduced in Symfony 6.4. |
306 | | - |
307 | 295 | Efficient management with Symfony Scheduler |
308 | 296 | ------------------------------------------- |
309 | 297 |
|
|
0 commit comments