Skip to content

Conversation

l3aro
Copy link
Contributor

@l3aro l3aro commented Oct 15, 2024

Right now, if we want to modify something in EnumStateMachine, we have to extend it, and fix in the trait EloquentHasStateMachine as well, since the trait use the EnumStateMachine directly.

To reduce the work and separate the concenrs, we should bind StateMachine contract to service container, so we can easily swap it later for certain use case.

Beside, since we require minimum php 8.2, I think its safe to use DNF type
https://www.php.net/releases/8.2/en.php#dnf_types

@l3aro l3aro marked this pull request as draft October 16, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant