CompiledConfig.php 860 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Interception\Cache;
  7. use Magento\Framework\Cache\Frontend\Decorator\TagScope;
  8. use Magento\Framework\Config\CacheInterface;
  9. use Magento\Framework\App\Cache\Type\FrontendPool;
  10. class CompiledConfig extends TagScope implements CacheInterface
  11. {
  12. /**
  13. * Cache type code unique among all cache types
  14. */
  15. const TYPE_IDENTIFIER = 'compiled_config';
  16. /**
  17. * Cache tag used to distinguish the cache type from all other cache
  18. */
  19. const CACHE_TAG = 'COMPILED_CONFIG';
  20. /**
  21. * @param FrontendPool $cacheFrontendPool
  22. */
  23. public function __construct(FrontendPool $cacheFrontendPool)
  24. {
  25. parent::__construct($cacheFrontendPool->get(self::TYPE_IDENTIFIER), self::CACHE_TAG);
  26. }
  27. }