Files
php-qml/framework/skeleton/symfony/src/Kernel.php
T

26 lines
622 B
PHP
Raw Normal View History

<?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;
// 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();
}
}