프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$aliasPrefix | string | Alias prefix in order to register assets into the service container. | |
$allowedAssets | array | A list of authorized assets to add. | |
$container | The service container. | ||
$finder | The AssetFinder instance. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Constructor. | |
add ( string $handle, string $path, array | boolean $deps = [], string $version = '1.0', boolean | string $mixed = null, string $type = '' ) : |
Add an asset to the application. |
public __construct ( |
||
$finder | ||
$container |
public add ( string $handle, string $path, array | boolean $deps = [], string $version = '1.0', boolean | string $mixed = null, string $type = '' ) : |
||
$handle | string | The asset handle name. |
$path | string | The URI to the asset or the absolute URL. |
$deps | array | boolean | An array with asset dependencies or false. |
$version | string | The version of your asset. |
$mixed | boolean | string | Boolean if javascript file | String if stylesheet file. |
$type | string | 'script' or 'style'. |
리턴 |
protected string $aliasPrefix | ||
리턴 | string |
protected array $allowedAssets | ||
리턴 | array |
protected Application,Themosis\Foundation $container | ||
리턴 |