Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ecf8815

Browse files
committed
Merge branch '5.0'
* 5.0: [Workflow] Replace has_role by is_granted [Console] Return an integer with the exit status as the result
2 parents 15df7ad + c550130 commit ecf8815

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ transition. The value of this option is any valid expression created with the
552552
553553
<framework:transition name="reject">
554554
<!-- or any valid expression language with "subject" referring to the post -->
555-
<framework:guard>has_role("ROLE_ADMIN") and subject.isStatusReviewed()</framework:guard>
555+
<framework:guard>is_granted("ROLE_ADMIN") and subject.isStatusReviewed()</framework:guard>
556556
<framework:from>reviewed</framework:from>
557557
<framework:to>rejected</framework:to>
558558
</framework:transition>
@@ -587,7 +587,7 @@ transition. The value of this option is any valid expression created with the
587587
],
588588
'reject' => [
589589
// or any valid expression language with "subject" referring to the post
590-
'guard' => 'has_role("ROLE_ADMIN") and subject.isStatusReviewed()',
590+
'guard' => 'is_granted("ROLE_ADMIN") and subject.isStatusReviewed()',
591591
'from' => 'reviewed',
592592
'to' => 'rejected',
593593
],

0 commit comments

Comments
 (0)