Download DIObject.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/DIObject.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/DIObject.php
-
curl -L -o DIObject.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/DIObject.php
555 Bytes
| namespace 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("\DI\object")) { | |
| function object(...$params) | |
| { | |
| return \Piwik\DI::autowire(...$params); | |
| } | |
| } | |
| if (!function_exists("\DI\link")) { | |
| function link(...$params) | |
| { | |
| return \Piwik\DI::get(...$params); | |
| } | |
| } | |