ExplicitElementLoader implements LoaderInterface
FinalYes
Translates `Builder::add()` definition+handler pairs into Registry entries.
Each registered closure is bound to ReferenceHandler as its scope so the reference handler short-circuits reflection and invokes it with the raw argument bag.
Tags
Table of Contents
Interfaces
Properties
- $prompts : array<string|int, mixed>
- $resources : array<string|int, mixed>
- $resourceTemplates : array<string|int, mixed>
- $tools : array<string|int, mixed>
Methods
- __construct() : mixed
- load() : void
- boundClosure() : Closure
Properties
$prompts read-only
private
array<string|int, mixed>
$prompts
= []
$resources read-only
private
array<string|int, mixed>
$resources
= []
$resourceTemplates read-only
private
array<string|int, mixed>
$resourceTemplates
= []
$tools read-only
private
array<string|int, mixed>
$tools
= []
Methods
__construct()
public
__construct([array<int, ToolHandlerInterface}> $tools = [] ][, array<int, ResourceHandlerInterface}> $resources = [] ][, array<int, ProviderInterface>}> $resourceTemplates = [] ][, array<int, ProviderInterface>}> $prompts = [] ]) : mixed
Parameters
- $tools : array<int, ToolHandlerInterface}> = []
- $resources : array<int, ResourceHandlerInterface}> = []
- $resourceTemplates : array<int, ProviderInterface>}> = []
- $prompts : array<int, ProviderInterface>}> = []
load()
public
load(RegistryInterface $registry) : void
Parameters
- $registry : RegistryInterface
boundClosure()
private
boundClosure(Closure $closure) : Closure
Parameters
- $closure : Closure