This commit is contained in:
Marcel Pociot
2020-06-15 23:54:51 +02:00
parent 7f459faaac
commit d8496bd433
6 changed files with 258 additions and 576 deletions

10
expose
View File

@@ -1,6 +1,8 @@
#!/usr/bin/env php
<?php
use function Clue\React\SQLite\runWorker;
define('LARAVEL_START', microtime(true));
/*
@@ -17,6 +19,14 @@ define('LARAVEL_START', microtime(true));
$autoloader = require file_exists(__DIR__.'/vendor/autoload.php') ? __DIR__.'/vendor/autoload.php' : __DIR__.'/../../autoload.php';
$options = getopt(null, [
'sqlite-worker',
]);
if (isset($options['sqlite-worker'])) {
runWorker($_SERVER['argv'][2] ?? null);
exit;
}
$app = require_once __DIR__.'/bootstrap/app.php';
/*