TemplateLocator
    
            
            in package
            
        
    
            
            implements
                            FileLocatorInterface                    
    
    
        
            TemplateLocator locates templates in bundles.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $cache : mixed
 - $locator : mixed
 - $cacheHits : mixed
 - __construct() : mixed
 - locate() : string
 - Returns a full path for a given file.
 - getCacheKey() : string
 - Returns a full path for a given file.
 
Properties
$cache
    protected
        mixed
    $cache
    
        
        
    
$locator
    protected
        mixed
    $locator
    
        
        
    
$cacheHits
    private
        mixed
    $cacheHits
     = []
        
        
    
Methods
__construct()
    public
                    __construct(FileLocatorInterface $locator[, string $cacheDir = null ]) : mixed
    
        Parameters
- $locator : FileLocatorInterface
 - $cacheDir : string = null
 - 
                    
The cache path
 
Return values
mixed —locate()
Returns a full path for a given file.
    public
                    locate(TemplateReferenceInterface $template[, string $currentPath = null ][, bool $first = true ]) : string
    
        Parameters
- $template : TemplateReferenceInterface
 - 
                    
A template
 - $currentPath : string = null
 - 
                    
Unused
 - $first : bool = true
 - 
                    
Unused
 
Tags
Return values
string —The full path for the file
getCacheKey()
Returns a full path for a given file.
    protected
                    getCacheKey(mixed $template) : string
    
        Parameters
- $template : mixed
 
Return values
string —The full path for the file