Property | Type | Description | |
---|---|---|---|
$bundleProcessors | |||
$compressors | |||
$contentTypes | # Map of file extensions to content types. | ||
$engines | # Engine Registry, stores engines per file extension. | ||
$loadPaths | # Stack of Load Paths for Assets. | ||
$postProcessors | |||
$preProcessors | # a mime type. |
Property | Type | Description | |
---|---|---|---|
$cssCompressor | |||
$jsCompressor |
Method | Description | |
---|---|---|
__construct ( $root = null ) | ||
appendPath ( $path ) | ||
contentType ( string $extension ) : string | Returns the content type for the extension, .e.g. "application/javascript" for ".js". | |
find ( string $logicalPath, array $options = [] ) : |
Finds the logical path in the stack of load paths and returns the Asset. | |
logicalPath ( string $absolutePath ) : string | Calculates the logical path for the given absolute path | |
offsetExists ( $offset ) | ||
offsetGet ( string $logicalPath ) : |
Sugar for find() | |
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) | ||
prependPath ( $path ) | ||
registerBundleProcessor ( $contentType, $processor ) | ||
registerEngine ( $engine, $extension ) | ||
registerPostProcessor ( $contentType, $processor ) | ||
registerPreProcessor ( $contentType, $processor ) | ||
setCssCompressor ( string $compressor ) | Set the CSS compressor | |
setJsCompressor ( string $compressor ) | Set the JS compressor |
public contentType ( string $extension ) : string | ||
$extension | string | |
return | string |
public logicalPath ( string $absolutePath ) : string | ||
$absolutePath | string | |
return | string |
public setCssCompressor ( string $compressor ) | ||
$compressor | string | Identifier of the compressor |
public setJsCompressor ( string $compressor ) | ||
$compressor | string | Identifier of the compressor |