Twig_ContainerRuntimeLoader
        
        extends ContainerRuntimeLoader
    
    
            
            in package
            
        
    
    
    
        
            Lazily loads Twig runtime implementations from a PSR-11 container.
Tags
Table of Contents
- $container : mixed
- __construct() : mixed
- load() : object|null
- Creates the runtime implementation of a Twig element (filter/function/test).
Properties
$container
    private
        mixed
    $container
    
        
        
    
Methods
__construct()
    public
                __construct(ContainerInterface $container) : mixed
        
        Parameters
- $container : ContainerInterface
Return values
mixed —load()
Creates the runtime implementation of a Twig element (filter/function/test).
    public
                load(mixed $class) : object|null
    
        Parameters
- $class : mixed
- 
                    A runtime class 
Return values
object|null —The runtime instance or null if the loader does not know how to create the runtime for this class