Files
nc_bot_webhooks/composer/autoload.php
T
kyle 3f51a8ca48 Can now get channels!
- Inject LoggerInterface across WebhookController, TalkService, and ImageCleanup
- Replace TalkService.getAvailableTalkRooms() OCS API calls with direct database queries
- Add getBaseUrl() helper to resolve localhost/SSRF constraints for internal API calls
- Update buildRichObject() to generate public link shares for file attachments
- Add saveBotPassword, debug, and debugTables endpoints to WebhookController
- Separate frontend assets (JS/CSS) from adminSettings template
- Add composer.json and autoload files for PSR-4 autoloading
- Update Admin settings to use TemplateResponse and register app icons
2026-06-11 10:21:23 -07:00

23 lines
570 B
PHP

<?php
// Generated autoload file for ncdiscordhook
// Provides PSR-4 autoloading for OCA\NCdiscordhook\
$baseDir = dirname(__DIR__);
spl_autoload_register(function ($class) use ($baseDir) {
// OCA\NCdiscordhook\ prefix
$prefix = 'OCA\\NCdiscordhook\\';
$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;
}
});