Final Class Yiisoft\Assets\Debug\AssetLoaderInterfaceProxy
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $assetLoader | Yiisoft\ |
|
| $assetCollector | Yiisoft\ |
|
public function __construct(
private readonly AssetLoaderInterface $assetLoader,
private readonly AssetCollector $assetCollector,
) {}
| public string getAssetUrl ( Yiisoft\ | ||
| $bundle | Yiisoft\ |
|
| $assetPath | string | |
public function getAssetUrl(AssetBundle $bundle, string $assetPath): string
{
return $this->assetLoader->getAssetUrl($bundle, $assetPath);
}
| public Yiisoft\ | ||
| $name | string | |
| $config | array | |
public function loadBundle(string $name, array $config = []): AssetBundle
{
$bundle = $this->assetLoader->loadBundle($name, $config);
$this->assetCollector->collect($bundle);
return $bundle;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.