Updates documentation to be inline with correct EnvironmentEvent class name

I found it confusing working with the sample code snippets on developer docs pages when working on my own plugin as the class is marked as deprecated and then realised that in fact there's two classes due to the type of Enviroment instead of Environment.