HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/matomo/app/DIObject.php
<?php

namespace Matomo\Dependencies\DI;

/**
 * This file aims to circumvent problems when updating to Matomo 4.
 * Matomo 4 includes a newer version of PHP-DI, which does not include \DI\object() any longer
 * To not run into any problems with plugins still using that we forward this method to \DI\autowire
 */
if (!function_exists("Matomo\\Dependencies\\DI\\object")) {
    function object(...$params)
    {
        return \Piwik\DI::autowire(...$params);
    }
}
if (!function_exists("Matomo\\Dependencies\\DI\\link")) {
    function link(...$params)
    {
        return \Piwik\DI::get(...$params);
    }
}