5 require_once __DIR__
."/../vendor/autoload.php";
8 use Auryn\CachingReflector
;
9 use Auryn\StandardReflector
;
11 return function(array $modules) {
12 $reflector = getenv("APP_ENVIRONMENT") == "production"
13 ?
new CachingReflector
14 : new StandardReflector
16 $injector = new Injector($reflector);
18 foreach ($modules as $module) {
19 require_once __DIR__
."/bootstrap/$module.php";