Свойство | 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. |
Свойство | Type | Description | |
---|---|---|---|
$cssCompressor | |||
$jsCompressor |
Méthode | 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 | |
Résultat | string |
public logicalPath ( string $absolutePath ) : string | ||
$absolutePath | string | |
Résultat | string |
public registerBundleProcessor ( $contentType, $processor ) |
public setCssCompressor ( string $compressor ) | ||
$compressor | string | Identifier of the compressor |
public setJsCompressor ( string $compressor ) | ||
$compressor | string | Identifier of the compressor |