When you call provider
, config
or constant
nothing happens immediately. The calls are registered, put in a queue and run during the initialization of the application.
The funny thing with constant
is that it is put at the front of the queue. Thus it's available before config
, no matter what.