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
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
Download
Patches
Plain diff
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
Dave Long
requested to merge
issue/drupal-3415938:3415938-cachefactory-inject-container
into
11.x
1 year ago
Overview
0
Commits
5
Pipelines
3
Changes
3
Expand
Closes
#3415938
0
0
Merge request reports
Compare
11.x
version 2
da0610c9
1 year ago
version 1
1d949e46
1 year ago
11.x (base)
and
latest version
latest version
e0ba664d
5 commits,
1 year ago
version 2
da0610c9
5 commits,
1 year ago
version 1
1d949e46
4 commits,
1 year ago
3 files
+
27
−
32
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Cache/CacheFactory.php
+
14
−
5
Options
@@ -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