0 follower

Trait Yiisoft\Yii\Debug\Collector\ProxyLogTrait

Implemented byYiisoft\Yii\Debug\Collector\ContainerInterfaceProxy, Yiisoft\Yii\Debug\Collector\ServiceMethodProxy, Yiisoft\Yii\Debug\Collector\ServiceProxy

Protected Methods

Hide inherited methods

Method Description Defined By
logProxy() Yiisoft\Yii\Debug\Collector\ProxyLogTrait

Method Details

Hide inherited methods

logProxy() protected method

protected void logProxy ( string $service, object $instance, string $method, array $arguments, mixed $result, float $timeStart )
$service string
$instance object
$method string
$arguments array
$result mixed
$timeStart float

                protected function logProxy(
    string $service,
    object $instance,
    string $method,
    array $arguments,
    mixed $result,
    float $timeStart
): void {
    $error = $this->getCurrentError();
    $this->processLogData($arguments, $result, $error);
    if ($this->config->getCollector() !== null) {
        $this->logToCollector($service, $instance, $method, $arguments, $result, $error, $timeStart);
    }
    if ($this->config->getDispatcher() !== null) {
        $this->logToEvent($service, $instance, $method, $arguments, $result, $error, $timeStart);
    }
}