Documentation

BundledPackage
in package

One Composer-installed frontend library that should be exposed via the AssetProxy. Resolves its on-disk path through Composer at mount time.

Example: new BundledPackage( package: "components/font-awesome", // The Composer package name directoryInPackage: "webfonts", // Directory inside the package urlPrefix: "css/webfonts", // URL prefix it lives at );

=> requests for "/_zubzet/asset-proxy/css/webfonts/fa-solid-900.woff2" serves "vendor/components/font-awesome/webfonts/fa-solid-900.woff2".

Both directoryInPackage and urlPrefix default to empty:

  • omit directoryInPackage to expose the package root
  • omit urlPrefix to mount at the asset-proxy root

Table of Contents

$directoryInPackage  : string
$package  : string
$urlPrefix  : string
__construct()  : mixed
mount()  : void

Properties

Methods

__construct()

public __construct(mixed $package[, mixed $directoryInPackage = "" ][, mixed $urlPrefix = "" ]) : mixed
Parameters
$package : mixed
$directoryInPackage : mixed = ""
$urlPrefix : mixed = ""
Return values
mixed

Search results