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 {@see AssetBundle::$export}. Yiisoft\Assets\AssetExporterInterface

Method Details

Hide inherited methods

export() public abstract method

Exports asset bundle file paths {@see AssetBundle::$export}.

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

public abstract void export ( Yiisoft\Assets\AssetBundle[] $assetBundles )
$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;