Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Feature/raw requests (#29)
Browse files Browse the repository at this point in the history
* Update DirectAdmin.php

* Update BaseContext.php

* Update BaseContext.php
  • Loading branch information
imadphp authored and curry684 committed May 26, 2018
1 parent c00964d commit 2737730
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/DirectAdmin/Context/BaseContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,14 @@ public function invokeApiPost($command, $postParameters = [])
{
return $this->connection->invokeApi('POST', $command, ['form_params' => $postParameters]);
}

/**
* @param $method
* @param $uri
* @param $options
*/
public function rawRequest($method, $uri, $options)
{
return $this->connection->rawRequest($method, $uri, $options);
}
}
2 changes: 1 addition & 1 deletion src/DirectAdmin/DirectAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function loginAs($username)
* @param array $options
* @return array
*/
private function rawRequest($method, $uri, $options)
public function rawRequest($method, $uri, $options)
{
try {
$response = $this->connection->request($method, $uri, $options);
Expand Down

0 comments on commit 2737730

Please sign in to comment.