Assets Manager Service
The assets service uses the Phalcon Assets Manager Component
Configurations
Assets Service Provider
PROVIDER_ASSETS=\PhalconKit\Provider\Assets\ServiceProvider
Assets Configurations Object
<?php
new Config([
'providers' => [
\PhalconKit\Provider\Assets\ServiceProvider::class => Env::get('PROVIDER_ASSETS', \PhalconKit\Provider\Assets\ServiceProvider::class),
],
]);
Assets Service (assets)
Assets Service Provider
Assets Service Provider (assets): \PhalconKit\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');