PHP Trait MiniAsset\Filter\CssDependencyTrait

Implementing classes can define the $optionalDependencyPrefix property to indicate that dependency files could also have an optional prefix. For example in scss @import 'utilities' will resolve to _utilities.scss.
显示文件 Open project: markstory/mini-asset

Public Methods

Method Description
getDependencies ( AssetTarget $target ) {@inheritDoc}

Protected Methods

Method Description
_findFile ( string $file ) : string Attempt to locate a file in the configured paths.
_prependPrefixToFilename ( string $name ) Prepends filenames with defined prefix if not already defined.

Method Details

_findFile() protected method

Attempt to locate a file in the configured paths.
protected _findFile ( string $file ) : string
$file string The file to find.
return string The resolved file.

_prependPrefixToFilename() protected method

Prepends filenames with defined prefix if not already defined.
protected _prependPrefixToFilename ( string $name )
$name string The file name.

getDependencies() public method

{@inheritDoc}
public getDependencies ( AssetTarget $target )
$target MiniAsset\AssetTarget