nitropack
Last commit date
classes
4 years ago
nitropack-sdk
4 years ago
view
4 years ago
advanced-cache.php
5 years ago
cf-helper.php
5 years ago
constants.php
4 years ago
diagnostics.php
4 years ago
functions.php
4 years ago
integrations.php
4 years ago
main.php
4 years ago
readme.txt
4 years ago
uninstall.php
4 years ago
wp-cli.php
5 years ago
integrations.php
14 lines
| 1 | <?php |
| 2 | |
| 3 | spl_autoload_register(function($class) { |
| 4 | $filename = str_replace("\\", "/", $class) . ".php"; |
| 5 | $filename = str_replace("NitroPack/", "", $filename); |
| 6 | $filepath = NITROPACK_CLASSES_DIR . ltrim($filename, "/"); |
| 7 | if (file_exists($filepath)) { |
| 8 | require_once $filepath; |
| 9 | } |
| 10 | }); |
| 11 | |
| 12 | $integration = NitroPack\Integration::getInstance(); |
| 13 | $integration->init(); |
| 14 |