PHP Class Flarum\Http\WebApp\WebAppAssets

Datei anzeigen Open project: flarum/core Class Usage Examples

Protected Properties

Property Type Description
$app Flarum\Foundation\Application
$cache Illuminate\Contracts\Cache\Repository
$locales Flarum\Locale\LocaleManager
$name string

Public Methods

Method Description
__construct ( string $name, Application $app, Illuminate\Contracts\Cache\Repository $cache, LocaleManager $locales )
flush ( )
flushCss ( )
flushJs ( )
flushLocaleCss ( )
flushLocaleJs ( )
getCss ( ) : LessCompiler
getJs ( ) : JsCompiler
getLocaleCss ( $locale ) : LessCompiler
getLocaleJs ( $locale ) : JsCompiler
setName ( string $name )

Protected Methods

Method Description
getDestination ( )
getLessStorage ( )
shouldWatch ( )

Method Details

__construct() public method

public __construct ( string $name, Application $app, Illuminate\Contracts\Cache\Repository $cache, LocaleManager $locales )
$name string
$app Flarum\Foundation\Application
$cache Illuminate\Contracts\Cache\Repository
$locales Flarum\Locale\LocaleManager

flush() public method

public flush ( )

flushCss() public method

public flushCss ( )

flushJs() public method

public flushJs ( )

flushLocaleCss() public method

public flushLocaleCss ( )

flushLocaleJs() public method

public flushLocaleJs ( )

getCss() public method

public getCss ( ) : LessCompiler
return Flarum\Asset\LessCompiler

getDestination() protected method

protected getDestination ( )

getJs() public method

public getJs ( ) : JsCompiler
return Flarum\Asset\JsCompiler

getLessStorage() protected method

protected getLessStorage ( )

getLocaleCss() public method

public getLocaleCss ( $locale ) : LessCompiler
$locale
return Flarum\Asset\LessCompiler

getLocaleJs() public method

public getLocaleJs ( $locale ) : JsCompiler
$locale
return Flarum\Locale\JsCompiler

setName() public method

public setName ( string $name )
$name string

shouldWatch() protected method

protected shouldWatch ( )

Property Details

$app protected_oe property

protected Application,Flarum\Foundation $app
return Flarum\Foundation\Application

$cache protected_oe property

protected Repository,Illuminate\Contracts\Cache $cache
return Illuminate\Contracts\Cache\Repository

$locales protected_oe property

protected LocaleManager,Flarum\Locale $locales
return Flarum\Locale\LocaleManager

$name protected_oe property

protected string $name
return string