BearFramework\App\Assets

Provides utility functions for assets

BearFramework\App\Assets {

    /* Methods */
    public void addDir ( string $pathname )
    public string getUrl ( string $filename [, array $options = [] ] )
    public boolean|string getFilename ( string $path )
    public string|null getMimeType ( string $filename )

}

Methods

BearFramework\App\Assets::addDir - Registers a directory that will be publicly accessible
BearFramework\App\Assets::getFilename - Returns the local filename for a given URL path
BearFramework\App\Assets::getMimeType - Finds the mime type of a filename by checking it's extension
BearFramework\App\Assets::getUrl - Returns a public URL for the specified filename