Unlock this challenge:
You fixed Bob's code to not use globals anymore. "But wait!" - he says - "What's so wrong with using globals? My code was a lot easier before!".
Globals are deprecated and are eventually going to be removed from PHP.
Globals make your code difficult to debug and read. When you have global $emailLoader, I wonder - who set this variable? And where? What type of object is this?
global $emailLoader
Globals are not as performant as using dependency injection.
The $GLOBALS variable is available when using a web server, but not when running command-line tasks. This makes your code very breakable if you want to use the same code to do batch processing jobs.
$GLOBALS