AssetManager
class AssetManager extends Twig_Extension implements Twig_Extension_GlobalsInterface (View source)
Attire Asset Manager Class
Traits
Methods
static bool
isValidFileExtension(string $ext)
Check if the file have a valid extension.
from FileKit
static
initialize(array $options = [])
Class constructor.
static
setNamespace(string $namespace)
Set namespace.
static
setManifest(string|array $manifest)
Set manifest.
debug(bool $state = true)
Set debug flag.
static
addAsset(string $filePath, null|string $namespace = null)
Add an asset to the manager.
static
setAutoload(array $autoload)
Asset autoloader setter.
static array
getAutoload()
Get the autoloader.
array
getGlobals()
Get the manag globals.
array
getFunctions()
Get the manager functions.
Details
static bool
rtrim(string $path, string $delimiter = '/')
Right trim a file path.
static bool
isValidFileExtension(string $ext)
Check if the file have a valid extension.
at line 68
static
initialize(array $options = [])
Class constructor.
at line 82
static
setNamespace(string $namespace)
Set namespace.
at line 92
static
setManifest(string|array $manifest)
Set manifest.
at line 106
debug(bool $state = true)
Set debug flag.
at line 117
static
addAsset(string $filePath, null|string $namespace = null)
Add an asset to the manager.
at line 130
static
setAutoload(array $autoload)
Asset autoloader setter.
at line 140
static array
getAutoload()
Get the autoloader.
at line 150
array
getGlobals()
Get the manag globals.
at line 189
array
getFunctions()
Get the manager functions.