Factory
class Factory implements FactoryInterface (View source)
Constants
| CACHE_PREFIX | 
                     
  | 
            
| CACHE_DURATION | 
                     
  | 
            
Properties
| protected Cache | $cache | ||
| protected Filesystem | $fs | 
Methods
Get stats about all the locally available translation files for the core.
Get core translations stats for a specific locale ID.
Get stats about all the locally available translation files for a package.
Get package translations stats for a specific locale ID.
Clear (eventually) cached data about local translation stats.
Get stats for a \Gettext\Translations instance.
Get stats for a gettext .mo file.
Details
        
                            
    __construct(Cache $cache, Filesystem $fs)
        
    
    No description
        
                            Stats[]
    getAvailableCoreStats()
        
    
    Get stats about all the locally available translation files for the core.
        
                            Stats
    getCoreStats(string $localeID)
        
    
    Get core translations stats for a specific locale ID.
        
                            Stats[]
    getAvailablePackageStats(Package $package)
        
    
    Get stats about all the locally available translation files for a package.
        
                            Stats
    getPackageStats(Package $package, string $localeID)
        
    
    Get package translations stats for a specific locale ID.
        
                            
    clearCache()
        
    
    Clear (eventually) cached data about local translation stats.
        
                    protected        null|array
    getTranslationsStats(Translations $translations, DateTime $defaultUpdatedOn)
        
    
    Get stats for a \Gettext\Translations instance.
        
                    protected        Stats
    getMoFileStats(string $moFile)
        
    
    Get stats for a gettext .mo file.