Skip to content

RoutingUserSource

RoutingUserSource allows you to provide an user source for the routing

class RoutingUserSource implements IRoutingSource

ImplementsIRoutingSource
Since1.0.0
SourceRouting/RoutingUserSource.php

public function __construct(ISecurityUser $user): mixed

Constructor.

An user instance.

ParameterTypeDescription
$userISecurityUserAn user instance.

Returns mixed

MethodDescription
getSource(array<int, string> $parts): mixedRetrieves the value for a given entry from the source.

public function getSource(array<int, string> $parts): mixed

Retrieves the value for a given entry from the source.

An array with the name parts for the entry.

ParameterTypeDescription
$partsarray``<``int``, ``string``>An array with the name parts for the entry.

Returns mixed — The value.