-
Notifications
You must be signed in to change notification settings - Fork 4
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
Review Class Structures in TFA Basic and update to D8 concepts #4
Comments
We need to tackle this. The plugin is initiated by the ContainerFactory class wherein the definition of plugin construct is If we remove the $context from TFATotp then how do we access the current user id as that is what the $context contains |
This can likely be pulled from the main services container, e.g.:
But, please don't lose sight of the dependency injection noted above. That's an important piece here as well to do a proper implementation |
I am not sure how you would accomplish getting the user through any other means |
$context can be removed and replaced with Let's start there to see if this removes the fatal error. We'll work on applying best practices with dependency injection thereafter (for which we can likely bring in the current user). |
There are several concepts in D8 that are not being utilized in the tfa_basic module.
The text was updated successfully, but these errors were encountered: