Tag Service
The tag
service uses the Phalcon Tag Component
Configurations
# no ini configuration available yet
Tag Service Provider
PROVIDER_TAG=\Zemit\Provider\Tag\ServiceProvider
Tag Configurations Object
<?php
new Config([
'providers' => [
\Zemit\Provider\Tag\ServiceProvider::class => Env::get('PROVIDER_TAG', \Zemit\Provider\Tag\ServiceProvider::class),
],
]);
Tag Service (tag
)
Tag Service Provider
Tag Service Provider (tag
): \Zemit\Provider\Tag\ServiceProvider
<?php
// Retrieving the service from an Injectable
$tag = $this->tag;
// Retrieving the service from the DI
$tag = $this->di->get('tag');
// Retrieving the service from the getDI()
$tag = $this->getDI()->get('tag');
// Retrieving the service from anywhere
$tag = Di::getDefault()->get('tag');