\Dewdrop\ActivityLogHandlerResolver

Summary

Methods
Properties
Constants
__construct()
registerHandler()
addPath()
resolve()
resolveByFullyQualifiedName()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
searchPathsForHandlers()
searchPathForHandlers()
$systemPaths
$paths
$handlerInstances
$pathSearchPerformed
N/A

Properties

$paths

$paths : array

Type

array

$handlerInstances

$handlerInstances : array

Type

array

$pathSearchPerformed

$pathSearchPerformed : boolean

Type

boolean

Methods

__construct()

__construct(\Dewdrop\Paths  $systemPaths = null) 

Parameters

\Dewdrop\Paths $systemPaths

addPath()

addPath(string  $path, string  $namespacePrefix) : $this

Add another path to search for handlers on top of the default system paths.

Parameters

string $path
string $namespacePrefix

Returns

$this

resolveByFullyQualifiedName()

resolveByFullyQualifiedName(string  $fullyQualifiedName) : \Dewdrop\ActivityLog\Handler\HandlerInterface

Parameters

string $fullyQualifiedName

Throws

\Dewdrop\ActivityLog\Exception\HandlerNotFound

Returns

\Dewdrop\ActivityLog\Handler\HandlerInterface

searchPathsForHandlers()

searchPathsForHandlers() 

searchPathForHandlers()

searchPathForHandlers(  $path,   $namespacePrefix) 

Parameters

$path
$namespacePrefix