Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3717322
D648.id1634.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D648.id1634.diff
View Options
diff --git a/src/DockerHubImage.php b/src/DockerHubImage.php
--- a/src/DockerHubImage.php
+++ b/src/DockerHubImage.php
@@ -20,20 +20,26 @@
return "https://registry.hub.docker.com/u/$this->user/$this->image";
}
+ ///
+ /// Factory methods to build a TriggerBuild instance or use it.
+ ///
+
/**
* Gets a trigger build for this image
* to be able to prepare a build trigger payload.
*
- * @param string $token The token to authentify the build request
+ * @param \Guzzle\ClientInterface A HTTP client [optional]
+ * @param string $token The token to authentify the build request [optional]
* @return Keruald\DockerHub\Build\TriggerBuild
*/
- public function getTriggerBuild (ClientInterface $client, $token) {
- return new TriggerBuild($this, $token);
+ public function getTriggerBuild (ClientInterface $client = null, $token = "") {
+ return new TriggerBuild($this, $token, $client);
}
/**
* Triggers a full build for this image.
*
+ * @param \Guzzle\ClientInterface A HTTP client
* @param string $token The token to authentify the build request
*/
public function triggerBuild (ClientInterface $client, $token) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 03:28 (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232582
Default Alt Text
D648.id1634.diff (1 KB)
Attached To
Mode
D648: Improve DockerHubImage factory methods
Attached
Detach File
Event Timeline
Log In to Comment