Basic difference between the CustomRealmPlugin in 2.x to CustomRealmExtension in 5.x is that now an instance needs to be provided instead of a class ref. previously realms were able to inject its own configurations by reading some yml file. but with 5.x restructuring i am unable to figure out how to read custom properties into a realm. These properties will be in a custom yml file in installed dir.
Also need to figure out whats the best way to get install dir so that i can load my properties via the realm.
any sample code would be of great help. i was reading https://github.com/elastic/shield-custom-realm-example, but it does not have that example.