PHP Class app\Application

Inheritance: extends Silex\Application
Show file Open project: phanan/koel Class Usage Examples

Public Methods

Method 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 method

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

publicPath() public method

We have merged public path and base path.
public publicPath ( ) : string
return string

rev() public method

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
return string

staticUrl() public method

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.
return string