Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c550130

Browse filesBrowse 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
Copy full SHA for c550130

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎components/console/helpers/questionhelper.rst

Copy file name to clipboardExpand all lines: components/console/helpers/questionhelper.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: workflow.rst
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.