0 follower

Interface Yiisoft\Assets\AssetExporterInterface

Implemented byYiisoft\Assets\Exporter\JsonAssetExporter, Yiisoft\Assets\Exporter\WebpackAssetExporter

The AssetExporterInterface must be implemented by asset exporter classes. The job of such class is to export asset bundles provided into a format readable by third party tools such as Webpack.

Public Methods

Hide inherited methods

Method Description Defined By
export() Exports asset bundle file paths Yiisoft\Assets\AssetBundle::$export. Yiisoft\Assets\AssetExporterInterface

Method Details

Hide inherited methods

export() public abstract method

Exports asset bundle file paths Yiisoft\Assets\AssetBundle::$export.

All dependencies must be created, and path aliases for Yiisoft\Assets\AssetBundle properties are resolved Yiisoft\Assets\AssetUtil::resolvePathAliases(). When using Yiisoft\Assets\AssetManager::export(), all dependencies and path aliases will be automatically resolved.

public abstract export( Yiisoft\Assets\AssetBundle[] $assetBundles ): void
$assetBundles Yiisoft\Assets\AssetBundle[]

The asset bundle instances.

throws RuntimeException

Should be thrown if an error occurred during the export.

                public function export(array $assetBundles): void;