spiral / app

Spiral Framework Skeleton HTTP Application: Queue, Console, Cycle ORM
https://spiral.dev/
MIT License
190 stars 20 forks source link

Sort bootloaders so that dotenv bootloader is loaded before the others #57

Closed kafkiansky closed 2 years ago

kafkiansky commented 2 years ago

Since DotenvBootloader is loaded later than bootloaders like Spiral\RoadRunnerBridge\Bootloader\CacheBootloader, Spiral\RoadRunnerBridge\Bootloader\QueueBootloader, they have no access to environment variables, so the default settings get default values. Because of this there is no way to override variables like QUEUE_CONNECTION, CACHE_STORAGE, etc.