\Twig_FactoryRuntimeLoader

Lazy loads the runtime implementations for a Twig element.

Summary

Methods
Properties
Constants
__construct()
load()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$map
N/A

Properties

$map

$map : 

Type

Methods

__construct()

__construct(array  $map = array()) 

Parameters

array $map

An array where keys are class names and values factory callables

load()

load(string  $class) : object|null

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

Parameters

string $class

A runtime class

Returns

object|null —

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