PHP Class Fenos\Notifynder\Translator\Compiler

Cache compiler for translations I got part of the code from the view compiler of laravel :)
Afficher le fichier Open project: fenos/notifynder Class Usage Examples

Protected Properties

Свойство Type Description
$files Illuminate\Filesystem\Filesystem The Filesystem instance.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Filesystem\Filesystem $files ) Create a new compiler instance.
cacheFile ( array $contents ) : boolean | integer Cache the file in json format.
getCompiledPath ( string $filename ) : string Get the path to the compiled version of a view.
getFilePath ( ) : string Get cached file.
isExpired ( ) : boolean Determine if the view at the given path is expired.

Méthodes protégées

Méthode Description
cachePath ( ) : string Get cache path.

Method Details

__construct() public méthode

Create a new compiler instance.
public __construct ( Illuminate\Contracts\Filesystem\Filesystem $files )
$files Illuminate\Contracts\Filesystem\Filesystem

cacheFile() public méthode

Cache the file in json format.
public cacheFile ( array $contents ) : boolean | integer
$contents array
Résultat boolean | integer

cachePath() protected méthode

Get cache path.
protected cachePath ( ) : string
Résultat string

getCompiledPath() public méthode

Get the path to the compiled version of a view.
public getCompiledPath ( string $filename ) : string
$filename string
Résultat string

getFilePath() public méthode

Get cached file.
public getFilePath ( ) : string
Résultat string

isExpired() public méthode

Determine if the view at the given path is expired.
public isExpired ( ) : boolean
Résultat boolean

Property Details

$files protected_oe property

The Filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem