Skip to content

Commit c550130

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [Workflow] Replace has_role by is_granted [Console] Return an integer with the exit status as the result
2 parents 58c189b + 006ea45 commit c550130

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/console/helpers/questionhelper.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ the following to your command::
4040
$question = new ConfirmationQuestion('Continue with this action?', false);
4141

4242
if (!$helper->ask($input, $output, $question)) {
43-
return;
43+
return 0;
4444
}
4545
}
4646
}

workflow.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ transition. The value of this option is any valid expression created with the
541541
542542
<framework:transition name="reject">
543543
<!-- or any valid expression language with "subject" referring to the post -->
544-
<framework:guard>has_role("ROLE_ADMIN") and subject.isStatusReviewed()</framework:guard>
544+
<framework:guard>is_granted("ROLE_ADMIN") and subject.isStatusReviewed()</framework:guard>
545545
<framework:from>reviewed</framework:from>
546546
<framework:to>rejected</framework:to>
547547
</framework:transition>
@@ -576,7 +576,7 @@ transition. The value of this option is any valid expression created with the
576576
],
577577
'reject' => [
578578
// or any valid expression language with "subject" referring to the post
579-
'guard' => 'has_role("ROLE_ADMIN") and subject.isStatusReviewed()',
579+
'guard' => 'is_granted("ROLE_ADMIN") and subject.isStatusReviewed()',
580580
'from' => 'reviewed',
581581
'to' => 'rejected',
582582
],

0 commit comments

Comments
 (0)