HumHub Documentation (unofficial)

ContainerRuntimeLoader
in package
implements RuntimeLoaderInterface

Lazily loads Twig runtime implementations from a PSR-11 container.

Note that the runtime services MUST use their class names as identifiers.

Tags
author

Fabien Potencier fabien@symfony.com

author

Robin Chalas robin.chalas@gmail.com

Table of Contents

Interfaces

RuntimeLoaderInterface
Creates runtime implementations for Twig elements (filters/functions/tests).

Properties

$container  : mixed

Methods

__construct()  : mixed
load()  : object|null
Creates the runtime implementation of a Twig element (filter/function/test).

Properties

Methods

load()

Creates the runtime implementation of a Twig element (filter/function/test).

public load(string $class) : object|null
Parameters
$class : string
Return values
object|null

The runtime instance or null if the loader does not know how to create the runtime for this class

Loading…
On this page

Search results