Files
Investidor-V2/outputs/investmoz-promotor-contexto-QA-20261015/boot-QA.php
T
nala 6a76aac80f
tests / ci (push) Canceled after 0s
versao compilada 1
2026-10-16 09:17:28 +02:00

10 lines
2.0 KiB
PHP

<?php
$source='C:/Users/macbook/.config/investmoz/promotor-contexto-QA-20261015/source';
require dirname(__DIR__,2).'/tools/portal-qa-environment.php';$target=portalQaEnvironment('file');$target['database']='promoter_context_20261015_test';
foreach(['DB_DATABASE'=>$target['database'],'APP_URL'=>'http://127.0.0.1:18520','APP_CONFIG_CACHE'=>$source.'/bootstrap/cache/config.php','APP_ROUTES_CACHE'=>$source.'/bootstrap/cache/routes-v7.php','SESSION_COOKIE'=>'promoter_context_qa','APP_DEBUG'=>'false','INVESTOR_PATH_ENABLED'=>'true','PORTAL_LEGACY_CONTENT_ENABLED'=>'false','PORTAL_LEGACY_CONTENT_QA_ENABLED'=>'true']as$k=>$v){putenv($k.'='.$v);$_ENV[$k]=$_SERVER[$k]=$v;}
$loader=require $source.'/vendor/autoload.php';$loader->setPsr4('App\\',$source.'/app');$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->useStoragePath($source.'/storage');$app->usePublicPath($source.'/public');
$app->afterBootstrapping(Illuminate\Foundation\Bootstrap\LoadConfiguration::class,function()use($source){config(['inertia.ssr.enabled'=>false,'suitecrm.enabled'=>false,'investmoz_ai.enabled'=>false,'portal.notifications_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','view.compiled'=>$source.'/storage/framework/views','cache.default'=>'array']);});
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();portalQaAssertTarget($target);app(Illuminate\Foundation\Vite::class)->useBuildDirectory('build');
if(!str_starts_with(str_replace('\\','/',(new ReflectionClass(App\Services\PortalProfileAccess::class))->getFileName()),$source.'/app/'))throw new RuntimeException('Private source required');