interface AssetsPackageInterface

AssetsPackageInterface

Any Assets Package class must implement this interface methods.

Methods

__construct(string $_root_dir, string $_assets_dir = null, string $_vendor_dir = null, string $_assets_vendor_dir = null)

No description

static object
createFromAssetsLoader(Loader $loader)

Create a new instance from an AssetsManager\Loader instance

loadFromArray(array $entries)

Load a new package from the ASSETS_DB_FILENAME entry

Details

at line 41
__construct(string $_root_dir, string $_assets_dir = null, string $_vendor_dir = null, string $_assets_vendor_dir = null)

Parameters

string $_root_dir The global package root directory (must exist)
string $_assets_dir The global package assets directory (must exist in $_root_dir)
string $_vendor_dir The global package vendor directory (must exist in $_root_dir)
string $_assets_vendor_dir The global package assets vendor directory (must exist in $_assets_dir)

at line 48
static object createFromAssetsLoader(Loader $loader)

Create a new instance from an AssetsManager\Loader instance

Parameters

Loader $loader

Return Value

object

at line 55
AssetsPackageInterface loadFromArray(array $entries)

Load a new package from the ASSETS_DB_FILENAME entry

Parameters

array $entries

Return Value

AssetsPackageInterface