Security
The Security trait provides methods to handle security-related functionalities.
- Full name:
\Zemit\Mvc\Model\Traits\Security
Methods
initializeSecurity
Initializes the security
public initializeSecurity(array|null $options = null): void
Parameters:
Parameter | Type | Description |
---|---|---|
$options | **array | null** |
setSecurityBehavior
Sets the security behavior
public setSecurityBehavior(\Zemit\Mvc\Model\Behavior\Security $securityBehavior): void
Parameters:
Parameter | Type | Description |
---|---|---|
$securityBehavior | \Zemit\Mvc\Model\Behavior\Security | The security behavior to set. |
getSecurityBehavior
Retrieves the security behavior
public getSecurityBehavior(): \Zemit\Mvc\Model\Behavior\Security
Return Value:
The security behavior instance.