2026-05-02 01:50:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
|
|
|
|
|
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
|
|
|
|
|
|
|
|
|
|
final class Kernel extends BaseKernel
|
|
|
|
|
{
|
|
|
|
|
use MicroKernelTrait;
|
2026-05-03 12:21:10 +02:00
|
|
|
|
|
|
|
|
// The bundled-mode supervisor sets APP_CACHE_DIR / APP_LOG_DIR to writable
|
|
|
|
|
// paths under the user data dir; the AppImage mount is read-only.
|
|
|
|
|
public function getCacheDir(): string
|
|
|
|
|
{
|
|
|
|
|
return $_SERVER['APP_CACHE_DIR'] ?? parent::getCacheDir();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getLogDir(): string
|
|
|
|
|
{
|
|
|
|
|
return $_SERVER['APP_LOG_DIR'] ?? parent::getLogDir();
|
|
|
|
|
}
|
2026-05-02 01:50:16 +02:00
|
|
|
}
|