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

Don't use singleton for getForm #56

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

blueo
Copy link
Contributor

@blueo blueo commented Feb 12, 2024

When using Injector to create a singleton constructor arguments are ignored. This causes getForm to fail as SAMLLoginForm requires constructor arguments.

See the docs for Injector get https://github.com/silverstripe/silverstripe-framework/blob/53c0147f112a011f8cbdfb964a92dc4eb81a8b7f/src/Core/Injector/Injector.php#L977

When using Injector to create a singleton constructor arguments are
ignored. This causes getForm to fail as SAMLLoginForm requires
constructor arguments.
@satrun77 satrun77 merged commit 3f211b5 into silverstripe:main Feb 12, 2024
9 checks passed
@blueo
Copy link
Contributor Author

blueo commented Feb 12, 2024

@satrun77 any chance of tagging a release? eg 3.0.1?

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.

2 participants