- 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
23 lines
570 B
PHP
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;
|
|
}
|
|
});
|