File tree Expand file tree Collapse file tree 1 file changed +33
-32
lines changed Expand file tree Collapse file tree 1 file changed +33
-32
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments