__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Joomla! Content Management System
*
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Cache;
use Joomla\CMS\Factory;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Defines the trait for a CacheControllerFactoryInterface Aware Class.
*
* @since 4.2.0
*/
trait CacheControllerFactoryAwareTrait
{
/**
* CacheControllerFactoryInterface
*
* @var CacheControllerFactoryInterface
*
* @since 4.2.0
*/
private $cacheControllerFactory;
/**
* Get the CacheControllerFactoryInterface.
*
* @return CacheControllerFactoryInterface
*
* @since 4.2.0
*/
protected function getCacheControllerFactory(): CacheControllerFactoryInterface
{
if ($this->cacheControllerFactory) {
return $this->cacheControllerFactory;
}
@trigger_error(
\sprintf('A cache controller is needed in %s. An UnexpectedValueException will be thrown in 5.0.', __CLASS__),
E_USER_DEPRECATED
);
return Factory::getContainer()->get(CacheControllerFactoryInterface::class);
}
/**
* Set the cache controller factory to use.
*
* @param ?CacheControllerFactoryInterface $cacheControllerFactory The cache controller factory to use.
*
* @return void
*
* @since 4.2.0
*/
public function setCacheControllerFactory(?CacheControllerFactoryInterface $cacheControllerFactory = null): void
{
$this->cacheControllerFactory = $cacheControllerFactory;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Controller | Folder | 0775 |
|
|
| Exception | Folder | 0775 |
|
|
| Storage | Folder | 0775 |
|
|
| Cache.php | File | 20.81 KB | 0664 |
|
| CacheController.php | File | 4.94 KB | 0664 |
|
| CacheControllerFactory.php | File | 1.32 KB | 0664 |
|
| CacheControllerFactoryAwareInterface.php | File | 826 B | 0664 |
|
| CacheControllerFactoryAwareTrait.php | File | 1.71 KB | 0664 |
|
| CacheControllerFactoryInterface.php | File | 888 B | 0664 |
|
| CacheStorage.php | File | 9.05 KB | 0664 |
|