Skip to content

Utils Service

Configurations

# no ini configuration available yet

Utils Service Provider

PROVIDER_UTILS=\Zemit\Provider\Utils\ServiceProvider

Utils Configurations Object

<?php
new Config([
    'providers' => [
        \Zemit\Provider\Utils\ServiceProvider::class => Env::get('PROVIDER_UTILS', \Zemit\Provider\Utils\ServiceProvider::class),
    ],
]);

Utils Service (utils)

Utils Service Provider

Utils Service Provider (utils): \Zemit\Provider\Utils\ServiceProvider

<?php
// Retrieving the service from an Injectable
$utils = $this->utils;

// Retrieving the service from the DI
$utils = $this->di->get('utils');

// Retrieving the service from the getDI()
$utils = $this->getDI()->get('utils');

// Retrieving the service from anywhere
$utils = Di::getDefault()->get('utils');