12 lines
1.8 KiB
PHP
12 lines
1.8 KiB
PHP
<?php
|
|
$source='C:/Users/macbook/.config/investmoz/classificacao-QA-20261015/reversal-source';
|
|
require dirname(__DIR__,2).'/tools/portal-qa-environment.php';$target=portalQaEnvironment('file');$target['database']='classification_20261015_test';
|
|
foreach(['DB_DATABASE'=>$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');}
|