This looks like a good candidate for the state system as it is an internal flag of sorts.
"The better way of doing it would likely be "whatever the CMI folks come up with when they figure this out". :-) Heyrocker said to go ahead with this approach for the time being and when CMI figures out how to handle super-early configuration we can move it over to that, along with a half-dozen other things."
So, is the state system what we should use for this super-early configuration? Or do we need another approach altogether? Either way, the reference to variable_get() needs to be removed from comments as well.
The Autoloader doesn't exist in D7 so we don't need to worry about d7->d8 migrations.
PASSED: [[SimpleTest]]: [MySQL] 49,289 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 47,857 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 46,916 pass(es).
PASSED: [[SimpleTest]]: [MySQL] 42,815 pass(es).
FAILED: [[SimpleTest]]: [MySQL] Invalid PHP syntax in core/includes/bootstrap.inc.