File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
components/console/helpers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ],
You can’t perform that action at this time.
0 commit comments