web\AssetManager resolveAsset()

resolveAsset() protected method protected string|boolean resolveAsset ( $bundle, $asset )$bundle yii\web\AssetBundle $asset string

web\AssetManager publishFile()

publishFile() protected method Publishes a file. protected array publishFile ( $src )$src string The asset file to be published return array The path and the URL that the asset is published as. throws yii\base\InvalidParamException if the asset to be published does not exist.

web\AssetManager publishDirectory()

publishDirectory() protected method Publishes a directory. protected array publishDirectory ( $src, $options )$src string The asset directory to be published $options array The options to be applied when publishing a directory. The following options are supported: only: array, list of patterns that the file paths should match if they want to be copied. except: array, list of patterns that the files or directories should match if they want to be excluded from being copied. caseSensitive

web\AssetManager publish()

publish() public method Publishes a file or a directory. This method will copy the specified file or directory to $basePath so that it can be accessed via the Web server. If the asset is a file, its file modification time will be checked to avoid unnecessary file copying. If the asset is a directory, all files and subdirectories under it will be published recursively. Note, in case $forceCopy is false the method only checks the existence of the target directory to avoid repetitive copying (

web\AssetManager loadDummyBundle()

loadDummyBundle() protected method Loads dummy bundle by name protected yii\web\AssetBundle loadDummyBundle ( $name )$name string

web\AssetManager loadBundle()

loadBundle() protected method Loads asset bundle class by name protected yii\web\AssetBundle loadBundle ( $name, $config = [], $publish = true )$name string Bundle name $config array Bundle object configuration $publish boolean If bundle should be published throws yii\base\InvalidConfigException if configuration isn't valid

web\AssetManager init()

init() public method Initializes the component. public void init ( )throws yii\base\InvalidConfigException if $basePath is invalid

web\AssetManager hash()

hash() protected method Generate a CRC32 hash for the directory path. Collisions are higher than MD5 but generates a much smaller hash string. protected string hash ( $path )$path string String to be hashed. return string Hashed string.

web\AssetManager getPublishedUrl()

getPublishedUrl() public method Returns the URL of a published file path. This method does not perform any publishing. It merely tells you if the file path is published, what the URL will be to access it. public string|false getPublishedUrl ( $path )$path string Directory or file path being published return string|false String the published URL for the file or directory. False if the file or directory does not exist.

web\AssetManager getPublishedPath()

getPublishedPath() public method Returns the published path of a file path. This method does not perform any publishing. It merely tells you if the file or directory is published, where it will go. public string|false getPublishedPath ( $path )$path string Directory or file path being published return string|false String the published file path. False if the file or directory does not exist