PHP Class Flarum\Asset\RevisionCompiler

Inheritance: implements Flarum\Asset\CompilerInterface
Afficher le fichier Open project: flarum/core Class Usage Examples

Protected Properties

Свойство Type Description
$files string[]
$strings callable[]
$watch boolean

Méthodes publiques

Méthode Description
__construct ( string $path, string $filename, boolean $watch = false )
addFile ( $file )
addString ( callable $callback )
compile ( )
flush ( )
getFile ( )
setFilename ( $filename )

Méthodes protégées

Méthode Description
format ( string $string ) : string
formatFile ( string $file ) : string
getCacheDifferentiator ( ) : mixed
getRevision ( ) : string | null
getRevisionFile ( ) : string
putRevision ( string $revision ) : integer

Method Details

__construct() public méthode

public __construct ( string $path, string $filename, boolean $watch = false )
$path string
$filename string
$watch boolean

addFile() public méthode

public addFile ( $file )

addString() public méthode

public addString ( callable $callback )
$callback callable

compile() public méthode

public compile ( )

flush() public méthode

public flush ( )

format() protected méthode

protected format ( string $string ) : string
$string string
Résultat string

formatFile() protected méthode

protected formatFile ( string $file ) : string
$file string
Résultat string

getCacheDifferentiator() protected méthode

protected getCacheDifferentiator ( ) : mixed
Résultat mixed

getFile() public méthode

public getFile ( )

getRevision() protected méthode

protected getRevision ( ) : string | null
Résultat string | null

getRevisionFile() protected méthode

protected getRevisionFile ( ) : string
Résultat string

putRevision() protected méthode

protected putRevision ( string $revision ) : integer
$revision string
Résultat integer

setFilename() public méthode

public setFilename ( $filename )

Property Details

$files protected_oe property

protected string[] $files
Résultat string[]

$strings protected_oe property

protected callable[] $strings
Résultat callable[]

$watch protected_oe property

protected bool $watch
Résultat boolean