-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beginning of continuouphp package Phing task
- Loading branch information
Frederic Dewinne
committed
May 9, 2015
1 parent
b21c5e6
commit 950aea6
Showing
6 changed files
with
92 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
* @author Frederic Dewinne <[email protected]> | ||
* @license http://opensource.org/licenses/Apache-2.0 Apache License, Version 2.0 | ||
*/ | ||
abstract class AbstractTask extends \Task | ||
abstract class AbstractTask extends \ProjectComponent | ||
{ | ||
/** | ||
* @var string | ||
|
@@ -55,7 +55,14 @@ protected function getClient() | |
{ | ||
if (is_null(self::$client)) { | ||
$this->setClient(new Client( | ||
array('base_url' => 'https://api.continuousphp.com/') | ||
array( | ||
'base_url' => 'https://api.continuousphp.com/', | ||
'defaults' => array( | ||
'headers' => array( | ||
'Accept' => 'application/hal+json', | ||
) | ||
) | ||
) | ||
)); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters