8000 Merge branch '3.4' into 4.2 · symfony/symfony-docs@6f3a761 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f3a761

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Workflow configuration
2 parents a7d13cf + 7f2ad5d commit 6f3a761

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

reference/configuration/framework.rst

8000 Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2250,13 +2250,19 @@ Name of the workflow you want to create.
22502250
audit_trail
22512251
"""""""""""
22522252

2253-
**type**: ``array``
2253+
**type**: ``bool``
2254+
2255+
If set to ``true``, the :class:`Symfony\\Component\\Workflow\\EventListener\\AuditTrailListener`
2256+
will be enabled.
22542257

22552258
initial_place
22562259
"""""""""""""
22572260

22582261
**type**: ``string`` **default**: ``null``
22592262

2263+
One of the ``places`` or ``null``. If not null and the supported object is not
2264+
already initialized via the workflow, this place will be set.
2265+
22602266
marking_store
22612267
"""""""""""""
22622268

@@ -2274,11 +2280,16 @@ places
22742280

22752281
**type**: ``array``
22762282

2283+
All available places (**type**: ``string``) for the workflow configuration.
2284+
22772285
supports
22782286
""""""""
22792287

22802288
**type**: ``string`` | ``array``
22812289

2290+
The FQCN (fully-qualified class name) of the object supported by the workflow
2291+
configuration or an array of FQCN if multiple objects are supported.
2292+
22822293
support_strategy
22832294
""""""""""""""""
22842295

@@ -2291,11 +2302,13 @@ transitions
22912302

22922303
Each marking store can define any of these options:
22932304

2294-
* ``from`` (**type**: ``string``)
2295-
* ``guard`` (**type**: ``string``) a :doc:`ExpressionLanguage </components/expression_language>`
2296-
compatible expression to block the transition
2297-
* ``name`` (**type**: ``string``)
2298-
* ``to`` (**type**: ``string``)
2305+
* ``from`` (**type**: ``string`` or ``array``) value from the ``places``,
2306+
multiple values are allowed for both ``workflow`` and ``state_machine``;
2307+
* ``guard`` (**type**: ``string``) an :doc:`ExpressionLanguage </components/expression_language>`
2308+
compatible expression to block the transition;
2309+
* ``name`` (**type**: ``string``) the name of the transition;
2310+
* ``to`` (**type**: ``string`` or ``array``) value from the ``places``,
2311+
multiple values are allowed only for ``workflow``.
22992312

23002313
.. _reference-workflows-type:
23012314

0 commit comments

Comments
 (0)
0