PHP Class Netson\L4gettext\Compilers\BladeCompiler

Inheritance: extends Illuminate\View\Compilers\BladeCompiler
Show file Open project: netson/l4gettext

Public Methods

Method Description
compile ( string $path ) : string method differs from parent method in that it returns the compiled path this can be used by the calling function to do cleanup afterwards
getCachePath ( ) : string new method which returns the set cachePath
getCompiledPath ( string $path ) : string method just adds extension .php to parents' compiled path
setCachePath ( string $cachePath ) new method which allows overwriting the cache path after initialization instead of having to provide it to the constructor
setFiles ( Illuminate\Filesystem\Filesystem $files ) method to set the $files attribute after calling the constructor

Method Details

compile() public method

method differs from parent method in that it returns the compiled path this can be used by the calling function to do cleanup afterwards
public compile ( string $path ) : string
$path string
return string

getCachePath() public method

new method which returns the set cachePath
public getCachePath ( ) : string
return string

getCompiledPath() public method

method just adds extension .php to parents' compiled path
public getCompiledPath ( string $path ) : string
$path string
return string

setCachePath() public method

new method which allows overwriting the cache path after initialization instead of having to provide it to the constructor
public setCachePath ( string $cachePath )
$cachePath string

setFiles() public method

method to set the $files attribute after calling the constructor
public setFiles ( Illuminate\Filesystem\Filesystem $files )
$files Illuminate\Filesystem\Filesystem