Skip to content

Commit 5b30947

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Scheduler] Reformat some versionadded directives
2 parents 97bfa5a + 529ba62 commit 5b30947

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

scheduler.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ It uses the same syntax as the `cron command-line utility`_::
140140

141141
RecurringMessage::cron('* * * * *', new Message());
142142

143+
// optionally you can define the timezone used by the cron expression
144+
RecurringMessage::cron('* * * * *', new Message(), new \DateTimeZone('Africa/Malabo'));
145+
146+
.. versionadded:: 6.4
147+
148+
The feature to define the cron timezone was introduced in Symfony 6.4.
149+
143150
Before using it, you must install the following dependency:
144151

145152
.. code-block:: terminal
@@ -151,10 +158,6 @@ Before using it, you must install the following dependency:
151158
Check out the `crontab.guru website`_ if you need help to construct/understand
152159
cron expressions.
153160

154-
.. versionadded:: 6.4
155-
156-
Since version 6.4, it is now possible to add and define a timezone as a 3rd argument
157-
158161
Periodical Triggers
159162
~~~~~~~~~~~~~~~~~~~
160163

@@ -291,11 +294,15 @@ recurring messages. You can narrow down the list to a specific schedule:
291294
15 4 */3 * * App\Messenger\Foo(0:17..) Mon, 18 Dec 2023 ...
292295
-------------------- -------------------------- ---------------------
293296
297+
# you can also specify a date to use for the next run date:
298+
$ php bin/console --date=2025-10-18
299+
300+
# use the --all option to also display the terminated recurring messages
301+
$ php bin/console --all
302+
294303
.. versionadded:: 6.4
295304

296-
Since version 6.4, you can even specify a date to determine the next run date
297-
using the ``--date`` option. Additionally, you have the option to display
298-
terminated recurring messages using the ``--all`` option.
305+
The ``--date`` and ``--all`` options were introduced in Symfony 6.4.
299306

300307
Efficient management with Symfony Scheduler
301308
-------------------------------------------

0 commit comments

Comments
 (0)