UserFactoryAwareTrait

Defines the trait for a UserFactoryInterface Aware Class.

since

4.4.0

package

Joomla CMS

Methods

getUserFactory

Get the UserFactoryInterface.

getUserFactory() : \Joomla\CMS\User\UserFactoryInterface
since

4.4.0

throws

UnexpectedValueExceptionMay be thrown if the UserFactory has not been set.

Response

UserFactoryInterface

setUserFactory

Set the user factory to use.

setUserFactory(\Joomla\CMS\User\UserFactoryInterface userFactory) : 
since

4.4.0

Arguments

userFactory

UserFactoryInterfaceThe user factory to use.

Response

void

Properties

userFactory

UserFactoryInterface

since

4.4.0

Type(s)

UserFactoryInterface