Skip to content

Commit 06330f3

Browse files
Made getTwilio public and added a proxy method in the manager for it
1 parent f57ee8b commit 06330f3

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/Manager.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,15 @@ public function defaultConnection()
9191
{
9292
return $this->from($this->default);
9393
}
94+
95+
/**
96+
* @param string $method
97+
* @param array $arguments
98+
*
99+
* @return mixed
100+
*/
101+
public function __call($method, $arguments)
102+
{
103+
return call_user_func_array([$this->defaultConnection(), $method], $arguments);
104+
}
94105
}

src/Twilio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function call($to, $message, array $options = [], $from = null)
9797
/**
9898
* @return \Services_Twilio
9999
*/
100-
private function getTwilio()
100+
public function getTwilio()
101101
{
102102
if (!$this->sslVerify) {
103103
$http = new Services_Twilio_TinyHttp(

0 commit comments

Comments
 (0)