Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!6797
Resolve
#3415938
"Cachefactory inject container"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Resolve
#3415938
"Cachefactory inject container"
issue/drupal-3415938:3415938-cachefactory-inject-container
into
11.x
Overview
0
Commits
5
Pipelines
3
Changes
3
Closed
Resolve #3415938 "Cachefactory inject container"
Dave Long
requested to merge
issue/drupal-3415938:3415938-cachefactory-inject-container
into
11.x
Feb 27, 2024
Overview
0
Commits
5
Pipelines
3
Changes
3
Closes
#3415938
0
0
Merge request reports
Compare
11.x
version 2
da0610c9
Feb 27, 2024
version 1
1d949e46
Feb 27, 2024
11.x (base)
and
latest version
latest version
e0ba664d
5 commits,
Feb 28, 2024
version 2
da0610c9
5 commits,
Feb 27, 2024
version 1
1d949e46
4 commits,
Feb 27, 2024
3 files
+
27
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
core/lib/Drupal/Core/Cache/CacheFactory.php
+
14
−
5
View file @ e0ba664d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -6,12 +6,9 @@
* Defines the cache backend factory.
*/
use
Drupal\Core\Site\Settings
;
use
Symfony\Component\DependencyInjection\ContainerAwareInterface
;
use
Symfony\Component\DependencyInjection\ContainerAwareTrait
;
use
Psr\Container\ContainerInterface
;
class
CacheFactory
implements
CacheFactoryInterface
,
ContainerAwareInterface
{
use
ContainerAwareTrait
;
class
CacheFactory
implements
CacheFactoryInterface
{
/**
* The site settings.
@@ -44,6 +41,18 @@ class CacheFactory implements CacheFactoryInterface, ContainerAwareInterface {
*/
protected
$memoryDefaultBinBackends
;
/**
* The service container.
*/
protected
ContainerInterface
$container
;
/**
* Sets the service container.
*/
public
function
setContainer
(
ContainerInterface
$container
):
void
{
$this
->
container
=
$container
;
}
/**
* Constructs CacheFactory object.
*
Loading