PHP Class Flarum\Asset\RevisionCompiler

Inheritance: implements Flarum\Asset\CompilerInterface
显示文件 Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$files string[]
$strings callable[]
$watch boolean

Public Methods

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

Protected Methods

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

Method Details

__construct() public method

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

addFile() public method

public addFile ( $file )

addString() public method

public addString ( callable $callback )
$callback callable

compile() public method

public compile ( )

flush() public method

public flush ( )

format() protected method

protected format ( string $string ) : string
$string string
return string

formatFile() protected method

protected formatFile ( string $file ) : string
$file string
return string

getCacheDifferentiator() protected method

protected getCacheDifferentiator ( ) : mixed
return mixed

getFile() public method

public getFile ( )

getRevision() protected method

protected getRevision ( ) : string | null
return string | null

getRevisionFile() protected method

protected getRevisionFile ( ) : string
return string

putRevision() protected method

protected putRevision ( string $revision ) : integer
$revision string
return integer

setFilename() public method

public setFilename ( $filename )

Property Details

$files protected_oe property

protected string[] $files
return string[]

$strings protected_oe property

protected callable[] $strings
return callable[]

$watch protected_oe property

protected bool $watch
return boolean