Skip to content

Commit

Permalink
feature symfony#52854 [Workflow] Add getEnabledTransition() method …
Browse files Browse the repository at this point in the history
…annotation to WorkflowInterface (alexandre-daubois)

This PR was merged into the 7.1 branch.

Discussion
----------

[Workflow] Add `getEnabledTransition()` method annotation to WorkflowInterface

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | yes
| Issues        | -
| License       | MIT

Followup of symfony#52814

Commits
-------

19abb99 [Workflow] Add `getEnabledTransition()` method annotation to WorkflowInterface
  • Loading branch information
fabpot committed Dec 8, 2023
2 parents ecc628a + 19abb99 commit 229cbf2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UPGRADE-7.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
UPGRADE FROM 7.0 to 7.1
=======================

Workflow
--------

* Add method `getEnabledTransition()` to `WorkflowInterface`
5 changes: 5 additions & 0 deletions src/Symfony/Component/Workflow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

7.1
---

* Add method `getEnabledTransition()` to `WorkflowInterface`

7.0
---

Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/Workflow/WorkflowInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Describes a workflow instance.
*
* @author Amrouche Hamza <[email protected]>
*
* @method Transition|null getEnabledTransition(object $subject, string $name)
*/
interface WorkflowInterface
{
Expand Down

0 comments on commit 229cbf2

Please sign in to comment.