Skip to content

Commit

Permalink
Made getTwilio public and added a proxy method in the manager for it
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesvdvreken committed Mar 18, 2016
1 parent f57ee8b commit 06330f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,15 @@ public function defaultConnection()
{
return $this->from($this->default);
}

/**
* @param string $method
* @param array $arguments
*
* @return mixed
*/
public function __call($method, $arguments)
{
return call_user_func_array([$this->defaultConnection(), $method], $arguments);
}
}
2 changes: 1 addition & 1 deletion src/Twilio.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function call($to, $message, array $options = [], $from = null)
/**
* @return \Services_Twilio
*/
private function getTwilio()
public function getTwilio()
{
if (!$this->sslVerify) {
$http = new Services_Twilio_TinyHttp(
Expand Down

0 comments on commit 06330f3

Please sign in to comment.