Skip to content

Commit

Permalink
updating to use guzzle 7, adding TokenFile support, and attempting to…
Browse files Browse the repository at this point in the history
… parse Token and TokenFile from env
  • Loading branch information
dcarbone committed Nov 16, 2020
1 parent 4be4ddc commit c6c3adf
Show file tree
Hide file tree
Showing 88 changed files with 353 additions and 205 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php": "^7.1",
"ext-json": "*",
"dcarbone/gotime": "0.3.*",
"guzzlehttp/guzzle": "~6",
"guzzlehttp/guzzle": "~7",
"guzzlehttp/psr7": "~1"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/ACL/ACLClient.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\ACL;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/ACL/ACLEntry.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\ACL;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/ACL/ACLReplicationStatus.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\ACL;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractClient.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractModel.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/AbstractModels.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/AgentCheck.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/AgentCheckRegistration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/AgentCheckUpdate.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/AgentClient.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/AgentMember.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions src/Agent/AgentService.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -70,7 +70,7 @@ public function getPort(): int {
}

/**
* @return boolean
* @return bool
*/
public function isEnableTagOverride(): bool {
return $this->EnableTagOverride;
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/AgentServiceCheck.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/Agent/AgentServiceRegistration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -132,14 +132,14 @@ public function setAddress(string $address): AgentServiceRegistration {
}

/**
* @return boolean
* @return bool
*/
public function isEnableTagOverride(): bool {
return $this->EnableTagOverride;
}

/**
* @param boolean $enableTagOverride
* @param bool $enableTagOverride
* @return \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration
*/
public function setEnableTagOverride(bool $enableTagOverride): AgentServiceRegistration {
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/GaugeValue.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/MemberOpts.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/MetricsInfo.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/PointValue.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Agent/SampledValue.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Agent;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Catalog/CatalogClient.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Catalog;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Catalog/CatalogDeregistration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Catalog;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Catalog/CatalogNode.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Catalog;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Catalog/CatalogRegistration.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Catalog;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Catalog/CatalogService.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Catalog;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/Catalog/Node.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php namespace DCarbone\PHPConsulAPI\Catalog;

/*
Copyright 2016-2018 Daniel Carbone ([email protected])
Copyright 2016-2020 Daniel Carbone ([email protected])
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit c6c3adf

Please sign in to comment.