PHP Class app\Application

Inheritance: extends Silex\Application
Afficher le fichier Open project: phanan/koel Class Usage Examples

Méthodes publiques

Méthode Description
getLatestVersion ( Client $client = null ) : string Get the latest version number of Koel from GitHub.
publicPath ( ) : string We have merged public path and base path.
rev ( string $file, string $manifestFile = null ) : string Loads a revision'ed asset file, making use of gulp-rev This is a copycat of L5's Elixir, but catered to our directory structure.
staticUrl ( string $name = null ) : string Get a URL for static file requests.

Method Details

getLatestVersion() public méthode

Get the latest version number of Koel from GitHub.
public getLatestVersion ( Client $client = null ) : string
$client GuzzleHttp\Client
Résultat string

publicPath() public méthode

We have merged public path and base path.
public publicPath ( ) : string
Résultat string

rev() public méthode

Loads a revision'ed asset file, making use of gulp-rev This is a copycat of L5's Elixir, but catered to our directory structure.
public rev ( string $file, string $manifestFile = null ) : string
$file string
$manifestFile string
Résultat string

staticUrl() public méthode

If this installation of Koel has a CDN_URL configured, use it as the base. Otherwise, just use a full URL to the asset.
public staticUrl ( string $name = null ) : string
$name string The additional resource name/path.
Résultat string