Assets Manager Service
The assets
service uses the Phalcon Assets Manager Component
Configurations
Assets Service Provider
PROVIDER_ASSETS=\Zemit\Provider\Assets\ServiceProvider
Assets Configurations Object
<?php
new Config([
'providers' => [
\Zemit\Provider\Assets\ServiceProvider::class => Env::get('PROVIDER_ASSETS', \Zemit\Provider\Assets\ServiceProvider::class),
],
]);
Assets Service (assets
)
Assets Service Provider
Assets Service Provider (assets
): \Zemit\Provider\Assets\ServiceProvider
<?php
// Retrieving the service from an Injectable
$assets = $this->assets;
// Retrieving the service from the DI
$assets = $this->di->get('assets');
// Retrieving the service from the getDI()
$assets = $this->getDI()->get('assets');
// Retrieving the service from anywhere
$assets = Di::getDefault()->get('assets');