Compare commits
1 Commits
2026.01.24
...
2026.01.24
| Author | SHA1 | Date | |
|---|---|---|---|
| f8919af31a |
@@ -101,8 +101,8 @@ if (!defined('TWILIO_AUTOLOADER_REGISTERED')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Convert class name to file path
|
// Convert class name to file path
|
||||||
$relative_class = substr($class, 7); // Remove 'Twilio\'
|
// The SDK structure is: twilio/sdk/Twilio/Rest/Client.php for Twilio\Rest\Client
|
||||||
$file = __DIR__ . '/twilio/sdk/' . str_replace('\\', '/', $relative_class) . '.php';
|
$file = __DIR__ . '/twilio/sdk/' . str_replace('\\', '/', $class) . '.php';
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
require_once $file;
|
require_once $file;
|
||||||
@@ -120,10 +120,10 @@ if (!defined('TWILIO_AUTOLOADER_REGISTERED')) {
|
|||||||
|
|
||||||
// Load essential Twilio classes manually to ensure they're available
|
// Load essential Twilio classes manually to ensure they're available
|
||||||
$essential_classes = [
|
$essential_classes = [
|
||||||
__DIR__ . '/twilio/sdk/Rest/Client.php',
|
__DIR__ . '/twilio/sdk/Twilio/Rest/Client.php',
|
||||||
__DIR__ . '/twilio/sdk/TwiML/VoiceResponse.php',
|
__DIR__ . '/twilio/sdk/Twilio/TwiML/VoiceResponse.php',
|
||||||
__DIR__ . '/twilio/sdk/Exceptions/TwilioException.php',
|
__DIR__ . '/twilio/sdk/Twilio/Exceptions/TwilioException.php',
|
||||||
__DIR__ . '/twilio/sdk/Security/RequestValidator.php'
|
__DIR__ . '/twilio/sdk/Twilio/Security/RequestValidator.php'
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($essential_classes as $class_file) {
|
foreach ($essential_classes as $class_file) {
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ if (!defined('TWILIO_AUTOLOADER_REGISTERED')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Convert class name to file path
|
// Convert class name to file path
|
||||||
$relative_class = substr($class, 7); // Remove 'Twilio\'
|
// The SDK structure is: twilio/sdk/Twilio/Rest/Client.php for Twilio\Rest\Client
|
||||||
$file = __DIR__ . '/twilio/sdk/' . str_replace('\\', '/', $relative_class) . '.php';
|
$file = __DIR__ . '/twilio/sdk/' . str_replace('\\', '/', $class) . '.php';
|
||||||
|
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
require_once $file;
|
require_once $file;
|
||||||
@@ -98,10 +98,10 @@ if (!defined('TWILIO_AUTOLOADER_REGISTERED')) {
|
|||||||
|
|
||||||
// Load essential Twilio classes manually to ensure they're available
|
// Load essential Twilio classes manually to ensure they're available
|
||||||
$essential_classes = [
|
$essential_classes = [
|
||||||
__DIR__ . '/twilio/sdk/Rest/Client.php',
|
__DIR__ . '/twilio/sdk/Twilio/Rest/Client.php',
|
||||||
__DIR__ . '/twilio/sdk/TwiML/VoiceResponse.php',
|
__DIR__ . '/twilio/sdk/Twilio/TwiML/VoiceResponse.php',
|
||||||
__DIR__ . '/twilio/sdk/Exceptions/TwilioException.php',
|
__DIR__ . '/twilio/sdk/Twilio/Exceptions/TwilioException.php',
|
||||||
__DIR__ . '/twilio/sdk/Security/RequestValidator.php'
|
__DIR__ . '/twilio/sdk/Twilio/Security/RequestValidator.php'
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($essential_classes as $class_file) {
|
foreach ($essential_classes as $class_file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user