$target['database'],'APP_URL'=>'http://127.0.0.1:18519','SESSION_COOKIE'=>'classification_delta_qa','INVESTOR_PATH_ENABLED'=>'true','PORTAL_LEGACY_CONTENT_ENABLED'=>'false','PORTAL_LEGACY_CONTENT_QA_ENABLED'=>'true']as$key=>$value){putenv($key.'='.$value);$_ENV[$key]=$_SERVER[$key]=$value;} $loader=require $source.'/vendor/autoload.php';$loader->addPsr4('App\\',$source.'/app',true); $overrides=[];foreach($loader->getClassMap()as$class=>$file){if(str_starts_with($class,'App\\')){$private=$source.'/app/'.str_replace('\\','/',substr($class,4)).'.php';if(is_file($private))$overrides[$class]=$private;}}$loader->addClassMap($overrides); $app=require $source.'/bootstrap/app.php'; $app->afterBootstrapping(Illuminate\Foundation\Bootstrap\LoadConfiguration::class,function()use($source){config(['inertia.ssr.enabled'=>false,'portal.profile_access_enabled'=>true,'portal.profile_administration_enabled'=>true,'portal.opportunity_specialized_drafts_enabled'=>true,'filesystems.disks.local.root'=>$source.'/storage/app/private','session.driver'=>'file','session.files'=>$source.'/storage/framework/sessions']);}); $app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();portalQaAssertTarget($target); app(Illuminate\Foundation\Vite::class)->useBuildDirectory('build'); foreach(['InvestorPath','FintechInvestment','SectorInvestment']as$name){$file=(new ReflectionClass('App\\Services\\'.$name))->getFileName();if(!str_starts_with(str_replace('\\','/',$file),$source.'/app/'))throw new RuntimeException('Private source resolution failed');}