Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
App
Cache
Type
Config.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\App\Cache\Type
;
8
9
use
Magento\Framework\Cache\Frontend\Decorator\TagScope
;
10
use
Magento\Framework\Config\CacheInterface
;
11
15
class
Config
extends
TagScope
implements
CacheInterface
16
{
20
const
TYPE_IDENTIFIER
=
'config'
;
21
25
const
CACHE_TAG
=
'CONFIG'
;
26
30
private
$cacheFrontendPool;
31
35
public
function
__construct
(\
Magento
\Framework\
App
\
Cache
\Type\
FrontendPool
$cacheFrontendPool)
36
{
37
$this->cacheFrontendPool = $cacheFrontendPool;
38
}
39
45
protected
function
_getFrontend
()
46
{
47
$frontend = parent::_getFrontend();
48
if
(!$frontend) {
49
$frontend = $this->cacheFrontendPool->get(self::TYPE_IDENTIFIER);
50
$this->
setFrontend
($frontend);
51
}
52
return
$frontend;
53
}
54
60
public
function
getTag
()
61
{
62
return
self::CACHE_TAG
;
63
}
64
}
Magento\Framework\App\Cache\Type\FrontendPool
Definition:
FrontendPool.php:17
Magento\Framework\App
Magento\Framework\App\Cache\Type\Config\TYPE_IDENTIFIER
const TYPE_IDENTIFIER
Definition:
Config.php:20
Magento\Framework\App\Cache
Definition:
Cache.php:13
Magento\Framework\App\Cache\Type\Config\__construct
__construct(\Magento\Framework\App\Cache\Type\FrontendPool $cacheFrontendPool)
Definition:
Config.php:35
Magento\Framework\Cache\Frontend\Decorator\TagScope
Definition:
TagScope.php:15
Magento\Framework\Cache\Frontend\Decorator\Bare\setFrontend
setFrontend(\Magento\Framework\Cache\FrontendInterface $frontend)
Definition:
Bare.php:36
Magento\Framework\App\CacheInterface
Definition:
CacheInterface.php:15
Magento
Magento\Framework\App\Cache\Type\Config\CACHE_TAG
const CACHE_TAG
Definition:
Config.php:25
Magento\Framework\App\Cache\Type\Config\_getFrontend
_getFrontend()
Definition:
Config.php:45
Magento\Framework\App\Cache\Type
Definition:
AccessProxy.php:12
Magento\Framework\Config\CacheInterface
Definition:
CacheInterface.php:16
Magento\Framework\App\Cache\Type\Config\getTag
getTag()
Definition:
Config.php:60
Magento\Framework\App\Cache\Type\Config
Definition:
Config.php:15