Lazily loads Twig runtime implementations from a PSR-11 container.
Note that the runtime services MUST use their class names as identifiers.
package | Default |
---|
__construct(\Psr\Container\ContainerInterface $container)
\Psr\Container\ContainerInterface
load(string $class): object|null
string
A runtime class
object|null
The runtime instance or null if the loader does not know how to create the runtime for this class
container :