Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually register concrete state classes #203

Merged
merged 2 commits into from Jun 7, 2022
Merged

Manually register concrete state classes #203

merged 2 commits into from Jun 7, 2022

Conversation

javoscript
Copy link
Contributor

Added a registerState($stateClass) method on the StateConfig class to be able to include concrete state implementations other than the ones in the same directory as the abstract base class.

Implementing the functionality asked in this discussion.

Also added what I considered relevant tests, and a subsection with the new functionality in the docs.

@freekmurze
Copy link
Member

@brendt Do you have time and want to review this one? If not, no problem, just let me know! 👍

@MrJuliuss
Copy link

Hi, a little bump. I need this feature too :)

@freekmurze freekmurze merged commit 976e5dc into spatie:main Jun 7, 2022
@freekmurze
Copy link
Member

Thanks!

@MrJuliuss
Copy link

Perfect, it works very well. Thanks

1 similar comment
@MrJuliuss
Copy link

Perfect, it works very well. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants