MIDDAG for Moodle

method_argument_resolver_interface

Interface method_argument_resolver_interface.

Defines a contract for resolving controller method arguments. Each resolver determines if it supports a parameter and is able to provide its value dynamically.

Table of Contents

Methods

resolve()  : mixed
Resolves the parameter value.
supports()  : bool
Determines whether the resolver supports the given method parameter.

Methods

resolve()

Resolves the parameter value.

public resolve(ReflectionParameter $parameter, array<string, mixed> $route_params) : mixed
Parameters
$parameter : ReflectionParameter
$route_params : array<string, mixed>

supports()

Determines whether the resolver supports the given method parameter.

public supports(ReflectionParameter $parameter) : bool
Parameters
$parameter : ReflectionParameter
Return values
bool

        
On this page

Search results