You need to be using the service container here instead of doing a directory scan. That or else the phpbb_extension_finder(), but since you already have the providers registered as services, I think you can just grab an array of them from the phpbb_service_collection and put them in the $auth_plugins array.