| 1 |
<?php |
| 2 |
|
| 3 |
require __DIR__ . '/src/functions.php'; |
| 4 |
|
| 5 |
spl_autoload_register(function ($class) { |
| 6 |
static $classmap = [ |
| 7 |
'Boxzilla\\Admin\\Admin' => __DIR__ . '/src/admin/class-admin.php', |
| 8 |
'Boxzilla\\Admin\\Installer' => __DIR__ . '/src/admin/class-installer.php', |
| 9 |
'Boxzilla\\Admin\\Menu' => __DIR__ . '/src/admin/class-menu.php', |
| 10 |
'Boxzilla\\Admin\\Migrations' => __DIR__ . '/src/admin/class-migrations.php', |
| 11 |
'Boxzilla\\Admin\\Notices' => __DIR__ . '/src/admin/class-notices.php', |
| 12 |
'Boxzilla\\Admin\\ReviewNotice' => __DIR__ . '/src/admin/class-review-notice.php', |
| 13 |
'Boxzilla\\Box' => __DIR__ . '/src/class-box.php', |
| 14 |
'Boxzilla\\BoxLoader' => __DIR__ . '/src/class-loader.php', |
| 15 |
'Boxzilla\\Boxzilla' => __DIR__ . '/src/class-boxzilla.php', |
| 16 |
'Boxzilla\\DI\\Container' => __DIR__ . '/src/di/class-container.php', |
| 17 |
'Boxzilla\\DI\\ContainerWithPropertyAccess' => __DIR__ . '/src/di/class-container-with-property-access.php', |
| 18 |
'Boxzilla\\Filter\\Autocomplete' => __DIR__ . '/src/admin/class-autocomplete.php', |
| 19 |
'Boxzilla\\Licensing\\API' => __DIR__ . '/src/licensing/class-api.php', |
| 20 |
'Boxzilla\\Licensing\\API_Exception' => __DIR__ . '/src/licensing/class-api-exception.php', |
| 21 |
'Boxzilla\\Licensing\\License' => __DIR__ . '/src/licensing/class-license.php', |
| 22 |
'Boxzilla\\Licensing\\LicenseManager' => __DIR__ . '/src/licensing/class-license-manager.php', |
| 23 |
'Boxzilla\\Licensing\\Poller' => __DIR__ . '/src/licensing/class-poller.php', |
| 24 |
'Boxzilla\\Licensing\\UpdateManager' => __DIR__ . '/src/licensing/class-update-manager.php', |
| 25 |
'Boxzilla\\Plugin' => __DIR__ . '/src/class-plugin.php', |
| 26 |
]; |
| 27 |
|
| 28 |
if (isset($classmap[$class])) { |
| 29 |
require $classmap[$class]; |
| 30 |
} |
| 31 |
}); |
| 32 |
|