Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default install results in "Class 'Twilio\Twiml' not found" errors #10

Open
ceejayoz opened this issue Dec 2, 2020 · 0 comments
Open

Comments

@ceejayoz
Copy link

ceejayoz commented Dec 2, 2020

I have a brand-new Botman installation.

Installing the Twilio driver via the instructions at https://botman.io/2.0/driver-twilio and doing a simple:

$this->say('Welcome!');

in a test conversation initiated via:

$botman->on(TwilioVoiceDriver::INCOMING_CALL, function($payload, $bot) {
    $bot->startConversation(new Conversations\SupportRequest);
});

results in the following error:

Class 'Twilio\Twiml' not found {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class 'Twilio\Twiml' not found at /Users/ceejayoz/Multibrain/phonetree/vendor/botman/driver-twilio/src/TwilioVoiceDriver.php:123

It appears the driver code does not function with the Twilio SDK version being required; it's code against an older SDK, perhaps v4? #9 appears to include the adjustments necessary (using Twilio\TwiML\VoiceResponse instead of Twilio\Twiml), but at this time, the driver doesn't appear to function as installed via Botman's docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant