Skip to content

Commit b02cd75

Browse files
committed
minor #8330 Update usage.rst (atailouloute)
This PR was submitted for the 3.2 branch but it was squashed and merged into the 3.3 branch instead (closes #8330). Discussion ---------- Update usage.rst Fixing indentation Commits ------- 472b994 Update usage.rst
2 parents 787278a + 472b994 commit b02cd75

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

workflow/usage.rst

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ like this:
2222

2323
.. code-block:: yaml
2424
25+
# app/config/config.yml
2526
framework:
2627
workflows:
2728
blog_publishing:
@@ -99,39 +100,39 @@ like this:
99100
100101
// app/config/config.php
101102
102-
$container->loadFromExtension('framework', array(
103-
// ...
104-
'workflows' => array(
105-
'blog_publishing' => array(
106-
'type' => 'workflow', // or 'state_machine'
107-
'marking_store' => array(
108-
'type' => 'multiple_state', // or 'single_state'
109-
'arguments' => array('currentPlace')
110-
),
111-
'supports' => array('AppBundle\Entity\BlogPost'),
112-
'places' => array(
113-
'draft',
114-
'review',
115-
'rejected',
116-
'published',
117-
),
118-
'transitions' => array(
119-
'to_review'=> array(
120-
'from' => 'draft',
121-
'to' => 'review',
122-
),
123-
'publish'=> array(
124-
'from' => 'review',
125-
'to' => 'published',
126-
),
127-
'reject'=> array(
128-
'from' => 'review',
129-
'to' => 'rejected',
130-
),
131-
),
132-
),
103+
$container->loadFromExtension('framework', array(
104+
// ...
105+
'workflows' => array(
106+
'blog_publishing' => array(
107+
'type' => 'workflow', // or 'state_machine'
108+
'marking_store' => array(
109+
'type' => 'multiple_state', // or 'single_state'
110+
'arguments' => array('currentPlace')
133111
),
134-
));
112+
'supports' => array('AppBundle\Entity\BlogPost'),
113+
'places' => array(
114+
'draft',
115+
'review',
116+
'rejected',
117+
'published',
118+
),
119+
'transitions' => array(
120+
'to_review' => array(
121+
'from' => 'draft',
122+
'to' => 'review',
123+
),
124+
'publish' => array(
125+
'from' => 'review',
126+
'to' => 'published',
127+
),
128+
'reject'=> array(
129+
'from' => 'review',
130+
'to' => 'rejected',
131+
),
132+
),
133+
),
134+
),
135+
));
135136
136137
.. code-block:: php
137138

0 commit comments

Comments
 (0)