class middag_helper extends facade mixin middag_helper

Facade for local_middag\framework\support\middag_helper.

Properties

static protected array<string,object> $resolved_instances

The resolved object instances (cached roots).

from  abstract_facade
static protected bool $cached

Indicates if resolved instances should be cached.

from  abstract_facade

Methods

static mixed
__callStatic(string $method, array $args)

Dynamically handle static method calls on the facade proxy.

static string
get_facade_accessor()

Return the service accessor key for this facade.

static object
get_facade_root()

Get the root object behind the facade.

static void
swap(object $instance)

Swap a given instance for testing or runtime overriding.

static void
clear_resolved_instance(string $name)

Clear one cached facade instance.

static void
clearresolved_instances()

Clear all cached facade instances.

static void
disable_cache()

Disable instance caching (useful for testing).

static void
enable_cache()

Enable instance caching.

static void
reset()

Reset the facade: clear cache and re-enable caching.

static object
resolve_facade_instance(string $name)

Resolve the instance from the Kernel container.

static void
init()

No description

static void
shutdown()

No description

static void
handle()

No description

static object
get(string $id)

No description

routing()

No description

static moodle_url
url_generator(string $route, array $parameters = [], int $reference_type = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH)

No description

static moodle_url
webhook_url_generator(string $route, array $parameters = [], int $reference_type = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH)

No description

static void
register_route(string $name, string $path, string $controller_class, string $method, array $requirements = [])

No description

static void
register_routes_from_annotations(string $class_name)

No description

static string
get_component_name()

No description

static string
get_docs_url()

No description

static string
get_site_url()

No description

static string
get_support_url()

No description

static string
static bool
is_testing()

No description

static bool
is_development()

No description

static bool
is_production()

No description

Details

in abstract_facade at line 62
static mixed __callStatic(string $method, array $args)

Dynamically handle static method calls on the facade proxy.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

BadMethodCallException
RuntimeException

at line 52
static string get_facade_accessor()

Return the service accessor key for this facade.

Return Value

string

the service ID or class name

in abstract_facade at line 94
static object get_facade_root()

Get the root object behind the facade.

Return Value

object

in abstract_facade at line 104
static void swap(object $instance)

Swap a given instance for testing or runtime overriding.

Parameters

object $instance

Return Value

void

in abstract_facade at line 118
static void clear_resolved_instance(string $name)

Clear one cached facade instance.

Parameters

string $name

Return Value

void

in abstract_facade at line 126
static void clearresolved_instances()

Clear all cached facade instances.

Return Value

void

in abstract_facade at line 134
static void disable_cache()

Disable instance caching (useful for testing).

Return Value

void

in abstract_facade at line 143
static void enable_cache()

Enable instance caching.

Return Value

void

in abstract_facade at line 151
static void reset()

Reset the facade: clear cache and re-enable caching.

Return Value

void

in abstract_facade at line 168
static protected object resolve_facade_instance(string $name)

Resolve the instance from the Kernel container.

Parameters

string $name

service identifier or class name registered in the container

Return Value

object

Exceptions

RuntimeException

at line 47
static void init()

No description

Return Value

void

at line 47
static void shutdown()

No description

Return Value

void

at line 47
static void handle()

No description

Return Value

void

at line 47
static object get(string $id)

No description

Parameters

string $id

Return Value

object

at line 47
static router_interface routing()

No description

Return Value

router_interface

at line 47
static moodle_url url_generator(string $route, array $parameters = [], int $reference_type = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH)

No description

Parameters

string $route
array $parameters
int $reference_type

Return Value

moodle_url

at line 47
static moodle_url webhook_url_generator(string $route, array $parameters = [], int $reference_type = \Symfony\Component\Routing\Generator\UrlGeneratorInterface::ABSOLUTE_PATH)

No description

Parameters

string $route
array $parameters
int $reference_type

Return Value

moodle_url

at line 47
static void register_route(string $name, string $path, string $controller_class, string $method, array $requirements = [])

No description

Parameters

string $name
string $path
string $controller_class
string $method
array $requirements

Return Value

void

at line 47
static void register_routes_from_annotations(string $class_name)

No description

Parameters

string $class_name

Return Value

void

at line 47
static string get_component_name()

No description

Return Value

string

at line 47
static string get_docs_url()

No description

Return Value

string

at line 47
static string get_site_url()

No description

Return Value

string

at line 47
static string get_support_url()

No description

Return Value

string

at line 47
static string get_middagplugins_overview_url()

No description

Return Value

string

at line 47
static bool is_testing()

No description

Return Value

bool

at line 47
static bool is_development()

No description

Return Value

bool

at line 47
static bool is_production()

No description

Return Value

bool