Files
whatsapp/scripts/debug_init_service.php
T
2026-01-21 02:22:29 -05:00

25 lines
662 B
PHP

<?php
require_once __DIR__ . '/../config/config_enhanced.php';
require_once __DIR__ . '/../config/config.php';
require_once __DIR__ . '/../services/WhatsAppService.php';
require_once __DIR__ . '/../services/BotService.php';
ini_set('display_errors', 1);
error_reporting(E_ALL);
try {
$s = new WhatsAppService();
echo "WhatsAppService OK\n";
} catch (Throwable $t) {
echo "WhatsAppService ERR: " . $t->getMessage() . "\n";
echo $t->getTraceAsString() . "\n";
}
try {
$b = new BotService();
echo "BotService OK\n";
} catch (Throwable $t) {
echo "BotService ERR: " . $t->getMessage() . "\n";
echo $t->getTraceAsString() . "\n";
}