Prv8 Shell
Server : Apache
System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
User : urbanovitalinoad ( 1001)
PHP Version : 7.3.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/urbanovitalinoad/public_html/next/libraries/src/Cache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/urbanovitalinoad/public_html/next/libraries/src/Cache/CacheControllerFactoryAwareTrait.php
<?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;

\defined('_JEXEC') or die;

use Joomla\CMS\Factory;

/**
 * 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;
	}
}

haha - 2025