Security extends Component
Security factory that wraps PHPSecLib.
Table of Contents
Properties
| $components | |
| $helpers | |
| $models |
Methods
| __construct() | |
| create() | Creates a new instance of the given PHPSecLib library |
Methods
__construct()
public
__construct() : mixed
create()
Creates a new instance of the given PHPSecLib library
public
static create(string $lib, string $class[, array<string|int, mixed> $params = [] ]) : object
Parameters
- $lib : string
-
The Library to load from (directory/namespace path) within phpseclib
- $class : string
-
The class name
- $params : array<string|int, mixed> = []
-
Parameters to pass to the construtor (if any)
Return values
object —Returns an instance of the given class