-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
57 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,8 @@ | |
* Use auto discovery to find a HTTP client. | ||
* | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class AutoDiscoveryFactory implements ClientFactory | ||
final class AutoDiscoveryFactory implements ClientFactory | ||
{ | ||
public function createClient(array $config = []) | ||
{ | ||
|
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 |
---|---|---|
|
@@ -10,10 +10,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class BuzzFactory implements ClientFactory | ||
final class BuzzFactory implements ClientFactory | ||
{ | ||
public function __construct(private readonly ResponseFactoryInterface $responseFactory) | ||
{ | ||
|
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 |
---|---|---|
|
@@ -10,10 +10,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class CurlFactory implements ClientFactory | ||
final class CurlFactory implements ClientFactory | ||
{ | ||
public function __construct( | ||
private readonly ResponseFactoryInterface $responseFactory, | ||
|
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 |
---|---|---|
|
@@ -8,10 +8,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class Guzzle6Factory implements ClientFactory | ||
final class Guzzle6Factory implements ClientFactory | ||
{ | ||
public function createClient(array $config = []) | ||
{ | ||
|
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 |
---|---|---|
|
@@ -8,10 +8,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class Guzzle7Factory implements ClientFactory | ||
final class Guzzle7Factory implements ClientFactory | ||
{ | ||
public function createClient(array $config = []) | ||
{ | ||
|
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 |
---|---|---|
|
@@ -8,10 +8,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class ReactFactory implements ClientFactory | ||
final class ReactFactory implements ClientFactory | ||
{ | ||
public function createClient(array $config = []) | ||
{ | ||
|
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 |
---|---|---|
|
@@ -8,10 +8,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class SocketFactory implements ClientFactory | ||
final class SocketFactory implements ClientFactory | ||
{ | ||
public function createClient(array $config = []) | ||
{ | ||
|
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 |
---|---|---|
|
@@ -11,10 +11,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class SymfonyFactory implements ClientFactory | ||
final class SymfonyFactory implements ClientFactory | ||
{ | ||
public function __construct( | ||
private readonly ResponseFactoryInterface $responseFactory, | ||
|
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 |
---|---|---|
|
@@ -18,10 +18,8 @@ | |
* @author Fabien Bourigault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class Collector extends DataCollector | ||
final class Collector extends DataCollector | ||
{ | ||
private ?Stack $activeStack = null; | ||
|
||
|
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
namespace Http\HttplugBundle\Collector; | ||
|
||
use Exception; | ||
use Http\Client\Exception\HttpException; | ||
use Http\Client\Exception\TransferException; | ||
use Http\Message\Formatter as MessageFormatter; | ||
|
@@ -19,10 +18,8 @@ | |
* @author Fabien Bourigault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class Formatter implements MessageFormatter | ||
final class Formatter implements MessageFormatter | ||
{ | ||
public function __construct( | ||
private readonly MessageFormatter $formatter, | ||
|
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 |
---|---|---|
|
@@ -21,10 +21,8 @@ | |
* @author Fabien Bourigault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class ProfileClient implements ClientInterface, HttpAsyncClient | ||
final class ProfileClient implements ClientInterface, HttpAsyncClient | ||
{ | ||
use VersionBridgeClient; | ||
|
||
|
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 |
---|---|---|
|
@@ -16,10 +16,8 @@ | |
* @author Fabien Bourigault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class ProfileClientFactory implements ClientFactory | ||
final class ProfileClientFactory implements ClientFactory | ||
{ | ||
/** | ||
* @var ClientFactory|callable | ||
|
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 |
---|---|---|
|
@@ -15,10 +15,8 @@ | |
* @author Fabien Bourigault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class ProfilePlugin implements Plugin | ||
final class ProfilePlugin implements Plugin | ||
{ | ||
use Plugin\VersionBridgePlugin; | ||
|
||
|
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 |
---|---|---|
|
@@ -15,10 +15,8 @@ | |
* @author Fabien Bourigault <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @final | ||
*/ | ||
class StackPlugin implements Plugin | ||
final class StackPlugin implements Plugin | ||
{ | ||
use Plugin\VersionBridgePlugin; | ||
|
||
|
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 |
---|---|---|
|
@@ -13,10 +13,8 @@ | |
|
||
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class HttpMessageMarkupExtension extends AbstractExtension | ||
final class HttpMessageMarkupExtension extends AbstractExtension | ||
{ | ||
private ClonerInterface $cloner; | ||
|
||
|
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 |
---|---|---|
|
@@ -31,10 +31,8 @@ | |
* | ||
* @author David Buchmann <[email protected]> | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class Configuration implements ConfigurationInterface | ||
final class Configuration implements ConfigurationInterface | ||
{ | ||
/** | ||
* Whether to use the debug mode. | ||
|
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 |
---|---|---|
|
@@ -40,10 +40,8 @@ | |
/** | ||
* @author David Buchmann <[email protected]> | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class HttplugExtension extends Extension | ||
final class HttplugExtension extends Extension | ||
{ | ||
public const HTTPLUG_CLIENT_TAG = 'httplug.client'; | ||
|
||
|
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 |
---|---|---|
|
@@ -14,10 +14,8 @@ | |
* we can use the web debug toolbar for clients found with the discovery. | ||
* | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class ConfiguredClientsStrategy implements DiscoveryStrategy | ||
final class ConfiguredClientsStrategy implements DiscoveryStrategy | ||
{ | ||
private static ?ClientInterface $client = null; | ||
|
||
|
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 |
---|---|---|
|
@@ -9,10 +9,8 @@ | |
|
||
/** | ||
* @author Wouter de Jong <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class ConfiguredClientsStrategyListener implements EventSubscriberInterface | ||
final class ConfiguredClientsStrategyListener implements EventSubscriberInterface | ||
{ | ||
/** | ||
* Make sure to use the custom strategy. | ||
|
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 |
---|---|---|
|
@@ -9,9 +9,7 @@ | |
/** | ||
* @author David Buchmann <[email protected]> | ||
* @author Tobias Nyholm <[email protected]> | ||
* | ||
* @final | ||
*/ | ||
class HttplugBundle extends Bundle | ||
final class HttplugBundle extends Bundle | ||
{ | ||
} |
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
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class BuzzFactoryTest extends TestCase | ||
final class BuzzFactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class CurlFactoryTest extends TestCase | ||
final class CurlFactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class Guzzle6FactoryTest extends TestCase | ||
final class Guzzle6FactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class Guzzle7FactoryTest extends TestCase | ||
final class Guzzle7FactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
/** | ||
* @author Gary PEGEOT <[email protected]> | ||
*/ | ||
class MockFactoryTest extends TestCase | ||
final class MockFactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class ReactFactoryTest extends TestCase | ||
final class ReactFactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class SocketFactoryTest extends TestCase | ||
final class SocketFactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
/** | ||
* @author Tobias Nyholm <[email protected]> | ||
*/ | ||
class SymfonyFactoryTest extends TestCase | ||
final class SymfonyFactoryTest extends TestCase | ||
{ | ||
public function testCreateClient(): void | ||
{ | ||
|
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
Oops, something went wrong.