mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)
* Update Symfony lib to version ~6.4.0 * Update code missing return type * Add an iTop general configuration entry to store application secret (Symfony mandatory parameter) * Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
@@ -16,7 +16,6 @@ use Symfony\Component\Cache\Adapter\AbstractAdapter;
|
||||
use Symfony\Component\Cache\Adapter\AdapterInterface;
|
||||
use Symfony\Component\Cache\Adapter\ApcuAdapter;
|
||||
use Symfony\Component\Cache\Adapter\ArrayAdapter;
|
||||
use Symfony\Component\Cache\Adapter\DoctrineAdapter;
|
||||
use Symfony\Component\Cache\Adapter\DoctrineDbalAdapter;
|
||||
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
|
||||
use Symfony\Component\Cache\Adapter\MemcachedAdapter;
|
||||
@@ -40,6 +39,7 @@ return static function (ContainerConfigurator $container) {
|
||||
|
||||
->set('cache.app.taggable', TagAwareAdapter::class)
|
||||
->args([service('cache.app')])
|
||||
->tag('cache.taggable', ['pool' => 'cache.app'])
|
||||
|
||||
->set('cache.system')
|
||||
->parent('cache.adapter.system')
|
||||
@@ -66,11 +66,21 @@ return static function (ContainerConfigurator $container) {
|
||||
->private()
|
||||
->tag('cache.pool')
|
||||
|
||||
->set('cache.asset_mapper')
|
||||
->parent('cache.system')
|
||||
->private()
|
||||
->tag('cache.pool')
|
||||
|
||||
->set('cache.messenger.restart_workers_signal')
|
||||
->parent('cache.app')
|
||||
->private()
|
||||
->tag('cache.pool')
|
||||
|
||||
->set('cache.scheduler')
|
||||
->parent('cache.app')
|
||||
->private()
|
||||
->tag('cache.pool')
|
||||
|
||||
->set('cache.adapter.system', AdapterInterface::class)
|
||||
->abstract()
|
||||
->factory([AbstractAdapter::class, 'createSystemCache'])
|
||||
@@ -95,22 +105,6 @@ return static function (ContainerConfigurator $container) {
|
||||
->tag('cache.pool', ['clearer' => 'cache.default_clearer', 'reset' => 'reset'])
|
||||
->tag('monolog.logger', ['channel' => 'cache'])
|
||||
|
||||
->set('cache.adapter.doctrine', DoctrineAdapter::class)
|
||||
->abstract()
|
||||
->args([
|
||||
abstract_arg('Doctrine provider service'),
|
||||
'', // namespace
|
||||
0, // default lifetime
|
||||
])
|
||||
->call('setLogger', [service('logger')->ignoreOnInvalid()])
|
||||
->tag('cache.pool', [
|
||||
'provider' => 'cache.default_doctrine_provider',
|
||||
'clearer' => 'cache.default_clearer',
|
||||
'reset' => 'reset',
|
||||
])
|
||||
->tag('monolog.logger', ['channel' => 'cache'])
|
||||
->deprecate('symfony/framework-bundle', '5.4', 'The "%service_id%" service inherits from "cache.adapter.doctrine" which is deprecated.')
|
||||
|
||||
->set('cache.adapter.filesystem', FilesystemAdapter::class)
|
||||
->abstract()
|
||||
->args([
|
||||
@@ -257,9 +251,6 @@ return static function (ContainerConfigurator $container) {
|
||||
|
||||
->alias(CacheItemPoolInterface::class, 'cache.app')
|
||||
|
||||
->alias(AdapterInterface::class, 'cache.app')
|
||||
->deprecate('symfony/framework-bundle', '5.4', sprintf('The "%%alias_id%%" alias is deprecated, use "%s" instead.', CacheItemPoolInterface::class))
|
||||
|
||||
->alias(CacheInterface::class, 'cache.app')
|
||||
|
||||
->alias(TagAwareCacheInterface::class, 'cache.app.taggable')
|
||||
|
||||
Reference in New Issue
Block a user