TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:31 +02:00
commit 3e43c11539
407 changed files with 51272 additions and 0 deletions
@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Install\Configuration\Cache;
use TYPO3\CMS\Install\Configuration\AbstractFeature;
use TYPO3\CMS\Install\Configuration\FeatureInterface;
/**
* Cache feature sets best practices
* @internal only to be used within EXT:install
*/
class CacheFeature extends AbstractFeature implements FeatureInterface
{
/**
* @var string Name of feature
*/
protected $name = 'Cache';
/**
* @var array List of preset classes
*/
protected $presetRegistry = [
DatabaseCachePreset::class,
FileCachePreset::class,
CustomCachePreset::class,
];
}
@@ -0,0 +1,36 @@
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Install\Configuration\Cache;
use TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend;
use TYPO3\CMS\Install\Configuration\AbstractCustomPreset;
use TYPO3\CMS\Install\Configuration\CustomPresetInterface;
/**
* Custom preset is a fallback if no other preset fits
* @internal only to be used within EXT:install
*/
class CustomCachePreset extends AbstractCustomPreset implements CustomPresetInterface
{
/**
* @var array Configuration values handled by this preset
*/
protected $configurationValues = [
'SYS/caching/cacheConfigurations/hash/backend' => Typo3DatabaseBackend::class,
'SYS/caching/cacheConfigurations/pages/backend' => Typo3DatabaseBackend::class,
'SYS/caching/cacheConfigurations/rootline/backend' => Typo3DatabaseBackend::class,
];
}
@@ -0,0 +1,53 @@
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Install\Configuration\Cache;
use TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend;
use TYPO3\CMS\Install\Configuration\AbstractPreset;
class DatabaseCachePreset extends AbstractPreset
{
/**
* @var string Name of preset
*/
protected $name = 'Database';
/**
* @var int Priority of preset
*/
protected $priority = 60;
/**
* @var array Configuration values handled by this preset
*/
protected $configurationValues = [
'SYS/caching/cacheConfigurations/hash/backend' => Typo3DatabaseBackend::class,
'SYS/caching/cacheConfigurations/pages/backend' => Typo3DatabaseBackend::class,
'SYS/caching/cacheConfigurations/pages/options/compression' => true,
'SYS/caching/cacheConfigurations/rootline/backend' => Typo3DatabaseBackend::class,
'SYS/caching/cacheConfigurations/rootline/options/compression' => true,
];
/**
* Database is always enabled
*
* @return bool TRUE if sendmail path if set
*/
public function isAvailable()
{
return true;
}
}
@@ -0,0 +1,53 @@
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
namespace TYPO3\CMS\Install\Configuration\Cache;
use TYPO3\CMS\Core\Cache\Backend\FileBackend;
use TYPO3\CMS\Install\Configuration\AbstractPreset;
class FileCachePreset extends AbstractPreset
{
/**
* @var string Name of preset
*/
protected $name = 'File';
/**
* @var int Priority of preset
*/
protected $priority = 50;
/**
* @var array Configuration values handled by this preset
*/
protected $configurationValues = [
'SYS/caching/cacheConfigurations/hash/backend' => FileBackend::class,
'SYS/caching/cacheConfigurations/pages/backend' => FileBackend::class,
'SYS/caching/cacheConfigurations/pages/options/compression' => '__UNSET',
'SYS/caching/cacheConfigurations/rootline/backend' => FileBackend::class,
'SYS/caching/cacheConfigurations/rootline/options/compression' => '__UNSET',
];
/**
* Database is always enabled
*
* @return bool TRUE if sendmail path if set
*/
public function isAvailable()
{
return true;
}
}