Skip to content

Commit

Permalink
Add a reminder about performance implications
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Dec 18, 2024
1 parent 702475d commit 2c2e7f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public static function get_providers() {
// Map provider keys to classes so that we can instantiate them.
$providers = self::get_providers_classes( $providers );

// TODO: Refactor this to avoid instantiating the provider instances every time this method is called.
foreach ( $providers as $provider_key => $provider_class ) {
try {
$providers[ $provider_key ] = call_user_func( array( $provider_class, 'get_instance' ) );
Expand Down

0 comments on commit 2c2e7f3

Please sign in to comment.