Skip to content

Profiler Service

The profiler service uses the Phalcon Profiler Component

Configurations

# no ini configuration available yet

Profiler Service Provider

PROVIDER_PROFILER=\Zemit\Provider\Profiler\ServiceProvider

Profiler Configurations Object

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

Profiler Service (profiler)

Profiler Service Provider

Profiler Service Provider (profiler): \Zemit\Provider\Profiler\ServiceProvider

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

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

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

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