config
3 years ago
core
3 years ago
js
3 years ago
lang
3 years ago
libs
3 years ago
node_modules
3 years ago
plugins
3 years ago
vendor
3 years ago
.htaccess
6 years ago
DIObject.php
5 years ago
LEGALNOTICE
4 years ago
LICENSE
6 years ago
LegacyAutoloader.php
5 years ago
PRIVACY.md
5 years ago
README.md
4 years ago
SECURITY.md
5 years ago
bootstrap.php
4 years ago
console
6 years ago
favicon.ico
6 years ago
index.php
5 years ago
matomo.js
3 years ago
matomo.php
5 years ago
offline-service-worker.js
5 years ago
piwik.js
3 years ago
piwik.php
5 years ago
robots.txt
5 years ago
DIObject.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace DI; |
| 4 | |
| 5 | /** |
| 6 | * This file aims to circumvent problems when updating to Matomo 4. |
| 7 | * Matomo 4 includes a newer version of PHP-DI, which does not include \DI\object() any longer |
| 8 | * To not run into any problems with plugins still using that we forward this method to \DI\autowire |
| 9 | */ |
| 10 | |
| 11 | if (!function_exists("\DI\object")) { |
| 12 | |
| 13 | function object() |
| 14 | { |
| 15 | return call_user_func_array("\DI\autowire", func_get_args()); |
| 16 | } |
| 17 | |
| 18 | } |
| 19 | |
| 20 | if (!function_exists("\DI\link")) { |
| 21 | |
| 22 | function link() |
| 23 | { |
| 24 | return call_user_func_array("\DI\get", func_get_args()); |
| 25 | } |
| 26 | |
| 27 | } |