Skip to content

Kirby 5.3.0

new Users()

Creates a new Collection with the given objects

new Users(iterable $objects = [ ], object|null $parent = null, string|null $root = null, array $inject = [ ])

Parameters

Name Type Default Description
$objects iterable<TUser> [ ]
$parent objectornull null
$root stringornull null Directory to dynamically load user
objects from during hydration
$inject array [ ] Props to inject into hydrated user objects

Parent class

Kirby\Cms\Users