CHG: update /etc/nsswitch.conf exclusion to relocated authselect-libs (Yum) CHG: introduce [session] => max_lifetime, maximal time for which any session is valid after login (config.ini) CHG: handle multipath URIs (Horizon) CHG: upgrade Laravel 13 (composer) CHG: deprecate array_first, array_last macros (helpers) CHG: general Claude security changes (modules) REM: mod_pagespeed in low-memory installations (apache/modpagespeed)
82 lines
2.5 KiB
Plaintext
Executable File
82 lines
2.5 KiB
Plaintext
Executable File
#!/usr/bin/env apnscp_php
|
|
<?php
|
|
|
|
define('LARAVEL_START', microtime(true));
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Register The Auto Loader
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Composer provides a convenient, automatically generated class loader
|
|
| for our application. We just need to utilize it! We'll require it
|
|
| into the script here so that we do not have to worry about the
|
|
| loading of any our classes "manually". Feels great to relax.
|
|
|
|
|
*/
|
|
define('INCLUDE_PATH', realpath(__DIR__));
|
|
define('SHIM', true);
|
|
include(INCLUDE_PATH . '/lib/apnscpcore.php');
|
|
|
|
use Auth as apnscpAuth;
|
|
|
|
if (!class_exists('DivineOmega\ArtisanMenu\Providers\ArtisanMenuServiceProvider')) {
|
|
// @TODO no-op for migration to complete to dump old config, kill post v3.2.50
|
|
class_alias(\Lararia\Providers\AppServiceProvider::class,
|
|
'DivineOmega\ArtisanMenu\Providers\ArtisanMenuServiceProvider');
|
|
}
|
|
|
|
$pwd = posix_getpwnam(APNSCP_SYSTEM_USER);
|
|
posix_seteuid(array_get($pwd, 'uid', 0));
|
|
posix_setegid(array_get($pwd, 'gid', 0));
|
|
// SHIM=true
|
|
|
|
apnscpSession::init();
|
|
session_start();
|
|
register_shutdown_function(function () {
|
|
if (session_status() === PHP_SESSION_ACTIVE) {
|
|
session_destroy();
|
|
}
|
|
});
|
|
$auth = apnscpAuth::import('CLI');
|
|
|
|
// shift to on-demand connections
|
|
\apnscpSession::init()->terminate();
|
|
require __DIR__.'/vendor/autoload.php';
|
|
/**
|
|
* Workaround for Horizon
|
|
*/
|
|
\Lararia\JobDaemon::shimPanelPhp();
|
|
$app = \Lararia\Bootstrapper::app();
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Run The Artisan Application
|
|
|--------------------------------------------------------------------------
|
|
|4
|
|
| When we run the console application, the current CLI command will be
|
|
| executed in this console and the response sent back to a terminal
|
|
| or another output device for the developers. Here goes nothing!
|
|
|
|
|
*/
|
|
|
|
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
|
|
|
|
$status = $kernel->handle(
|
|
$input = new Symfony\Component\Console\Input\ArgvInput,
|
|
new Symfony\Component\Console\Output\ConsoleOutput
|
|
);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Shutdown The Application
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Once Artisan has finished running, we will fire off the shutdown events
|
|
| so that any final work may be done by the application before we shut
|
|
| down the process. This is the last thing to happen to the request.
|
|
|
|
|
*/
|
|
|
|
$kernel->terminate($input, $status);
|
|
|
|
exit($status); |