Files
nc_bot_webhooks/composer/autoload.php
T
kyle 19241c842d refactor: rename app from ncdiscordhook to nc_bot_webhooks
- Update namespace from OCA\NCdiscordhook to OCA\Ncbotwebhooks
- Update app ID, name, and namespace in appinfo/info.xml
- Update composer.json and autoload files
- Update CLI command names from ncdiscordhook:* to nc_bot_webhooks:*
- Update image directory name to nc_bot_webhooks-images
- Update documentation in README.md and INSTALL.md
- Update JavaScript APP_ID and navigation provider paths
- Update admin settings and controller app references
2026-06-12 18:30:12 -07:00

23 lines
572 B
PHP

<?php
// Generated autoload file for nc_bot_webhooks
// Provides PSR-4 autoloading for OCA\Ncbotwebhooks\
$baseDir = dirname(__DIR__);
spl_autoload_register(function ($class) use ($baseDir) {
// OCA\Ncbotwebhooks\ prefix
$prefix = 'OCA\\Ncbotwebhooks\\';
$prefixLen = strlen($prefix);
if (strncmp($class, $prefix, $prefixLen) !== 0) {
return;
}
$relativeClass = substr($class, $prefixLen);
$file = $baseDir . '/lib/' . str_replace('\\', '/', $relativeClass) . '.php';
if (file_exists($file)) {
require $file;
}
});