diff --git a/core/core.services.yml b/core/core.services.yml index d8da432..dfb943c 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -9,6 +9,7 @@ parameters: reverse_proxy: {} file_chmod: {} session_write_interval: 180 + services: cache_factory: class: Drupal\Core\Cache\CacheFactory @@ -1152,7 +1153,7 @@ services: - [setWriteSafeHandler, ['@session_handler.write_safe']] session_manager.metadata_bag: class: Drupal\Core\Session\MetadataBag - arguments: ['@settings'] + arguments: ['%session_write_interval%'] asset.css.collection_renderer: class: Drupal\Core\Asset\CssCollectionRenderer arguments: [ '@state' ] diff --git a/core/lib/Drupal/Core/File/FileSystem.php b/core/lib/Drupal/Core/File/FileSystem.php index 570c1df..0365bca 100644 --- a/core/lib/Drupal/Core/File/FileSystem.php +++ b/core/lib/Drupal/Core/File/FileSystem.php @@ -7,7 +7,6 @@ namespace Drupal\Core\File; -use Drupal\Core\Site\Settings; use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface; use Psr\Log\LoggerInterface; diff --git a/core/lib/Drupal/Core/Queue/QueueFactory.php b/core/lib/Drupal/Core/Queue/QueueFactory.php index 510b5e0..9ff72d8 100644 --- a/core/lib/Drupal/Core/Queue/QueueFactory.php +++ b/core/lib/Drupal/Core/Queue/QueueFactory.php @@ -7,7 +7,6 @@ namespace Drupal\Core\Queue; -use Drupal\Core\Site\Settings; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerAwareTrait; @@ -41,7 +40,7 @@ class QueueFactory implements ContainerAwareInterface { */ function __construct(array $queue_configuration) { $queue_configuration += [ - 'default' => ['queue.database'], + 'default' => 'queue.database', ]; $this->queueConfiguration = $queue_configuration; } diff --git a/core/lib/Drupal/Core/Session/MetadataBag.php b/core/lib/Drupal/Core/Session/MetadataBag.php index e7f56c8..2526d18 100644 --- a/core/lib/Drupal/Core/Session/MetadataBag.php +++ b/core/lib/Drupal/Core/Session/MetadataBag.php @@ -7,7 +7,6 @@ namespace Drupal\Core\Session; -use Drupal\Core\Site\Settings; use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag as SymfonyMetadataBag; /** diff --git a/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php b/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php index 7b8813c..f0504f0 100644 --- a/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php +++ b/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php @@ -6,7 +6,6 @@ namespace Drupal\Core\StackMiddleware; -use Drupal\Core\Site\Settings; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\HttpKernelInterface; diff --git a/core/tests/Drupal/Tests/Core/File/FileSystemTest.php b/core/tests/Drupal/Tests/Core/File/FileSystemTest.php index 395248a..393c035 100644 --- a/core/tests/Drupal/Tests/Core/File/FileSystemTest.php +++ b/core/tests/Drupal/Tests/Core/File/FileSystemTest.php @@ -8,7 +8,6 @@ namespace Drupal\Tests\Core\File; use Drupal\Core\File\FileSystem; -use Drupal\Core\Site\Settings; use Drupal\Tests\UnitTestCase; use org\bovigo\vfs\vfsStream; diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php index 67a9b23..efea670 100644 --- a/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php +++ b/core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php @@ -7,7 +7,6 @@ namespace Drupal\Tests\Core\StackMiddleware; -use Drupal\Core\Site\Settings; use Drupal\Core\StackMiddleware\ReverseProxyMiddleware; use Drupal\Tests\UnitTestCase; use Symfony\Component\HttpFoundation\Request;