@@ -1,14 +1,17 @@
|
||||
<?php
|
||||
|
||||
use App\Services\OpportunityResourceInstallation;
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
// Read-only installation readiness; never applies migrations or authenticates an actor.
|
||||
require dirname(__DIR__).'/vendor/autoload.php';
|
||||
$app = require dirname(__DIR__).'/bootstrap/app.php';
|
||||
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
$db = $app->make('db')->connection();
|
||||
$db->beginTransaction();
|
||||
try {
|
||||
$db->statement('SET TRANSACTION READ ONLY');
|
||||
$preview = $app->make(\App\Services\OpportunityResourceInstallation::class)->preview();
|
||||
$preview = $app->make(OpportunityResourceInstallation::class)->preview();
|
||||
$proofPath = storage_path('app/private/investmoz-v2/opportunity-resources-activation-proof.json');
|
||||
$proof = is_file($proofPath) ? json_decode(file_get_contents($proofPath), true, 512, JSON_THROW_ON_ERROR) : [];
|
||||
$result = [
|
||||
|
||||
Reference in New Issue
Block a user