/home/techb158/ileadtechnology.com/SSM/vendor/aloha/twilio/src/Commands
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/aloha/twilio/src/Commands/TwilioCallCommand.php (2133B)
twilio = $twilio;
}
/**
* Execute the console command.
*/
public function fire()
{
$this->line('Creating a call via Twilio to: '.$this->argument('phone'));
// Grab options
$from = $this->option('from');
$url = $this->option('url');
// Set a default URL if we havent specified one since is mandatory.
if (is_null($url)) {
$url = 'http://demo.twilio.com/docs/voice.xml';
}
$this->twilio->call($this->argument('phone'), $url, [], $from);
}
/**
* Proxy method for Laravel 5.1+
*/
public function handle()
{
return $this->fire();
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [
['phone', InputArgument::REQUIRED, 'The phone number that will receive a test message.'],
];
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [
['url', null, InputOption::VALUE_OPTIONAL, 'Optional url that will be used to fetch xml for call.', null],
['from', null, InputOption::VALUE_OPTIONAL, 'Optional from number that will be used.', null],
];
}
}