Skip to content

Commit ceaadad

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Update configuration.rst move versionadded directive out of list item add back information on accessing the context in guard events
2 parents be3fe46 + 01554e4 commit ceaadad

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

configuration.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,13 @@ files directly in the ``config/packages/`` directory.
439439
webpack_encore:
440440
strict_mode: false
441441
442+
# YAML syntax allows to reuse contents using "anchors" (&some_name) and "aliases" (*some_name).
443+
# In this example, 'test' configuration uses the exact same configuration as in 'prod'
444+
when@prod: &webpack_prod
445+
webpack_encore:
446+
# ...
447+
when@test: *webpack_prod
448+
442449
.. code-block:: xml
443450
444451
<!-- config/packages/webpack_encore.xml -->

workflow.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,14 +382,14 @@ order:
382382

383383
$workflow->apply($subject, $transitionName, [Workflow::DISABLE_ANNOUNCE_EVENT => true]);
384384

385-
The context is accessible in all events::
385+
The context is accessible in all events except for the ``workflow.guard`` events::
386386

387-
// $context must be an array
388-
$context = ['context_key' => 'context_value'];
389-
$workflow->apply($subject, $transitionName, $context);
387+
// $context must be an array
388+
$context = ['context_key' => 'context_value'];
389+
$workflow->apply($subject, $transitionName, $context);
390390

391-
// in an event listener (workflow.guard events)
392-
$context = $event->getContext(); // returns ['context']
391+
// in an event listener (workflow.guard events)
392+
$context = $event->getContext(); // returns ['context']
393393

394394
.. note::
395395

0 commit comments

Comments
 (0)