Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@

namespace Innmind\HttpTransport;

use Innmind\HttpTransport\Transport\{
Implementation,
Curl,
CircuitBreaker,
ExponentialBackoff,
FollowRedirections,
Logger,
Via,
};
use Innmind\Http\Request;
use Innmind\IO\IO;
use Innmind\Time\{
Expand Down
7 changes: 6 additions & 1 deletion src/CircuitBreaker.php → src/Transport/CircuitBreaker.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;
namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\{
Success,
ServerError,
ConnectionFailed,
};
use Innmind\Http\{
Request,
Response,
Expand Down
9 changes: 5 additions & 4 deletions src/Curl.php → src/Transport/Curl.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;
namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\Curl\{
Scheduled,
Concurrency
use Innmind\HttpTransport\{
Config,
Transport\Curl\Scheduled,
Transport\Curl\Concurrency,
};
use Innmind\Http\{
Request,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport\Curl;
namespace Innmind\HttpTransport\Transport\Curl;

use Innmind\HttpTransport\{
Transport,
Expand Down
2 changes: 1 addition & 1 deletion src/Curl/Ready.php → src/Transport/Curl/Ready.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport\Curl;
namespace Innmind\HttpTransport\Transport\Curl;

use Innmind\HttpTransport\{
Transport,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport\Curl;
namespace Innmind\HttpTransport\Transport\Curl;

use Innmind\HttpTransport\{
Failure,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;
namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\{
Success,
Information,
Redirection,
ClientError,
ServerError,
ConnectionFailed,
MalformedResponse,
Failure,
};
use Innmind\Http\{
Request,
Response\StatusCode,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;
namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\{
Success,
Redirection,
};
use Innmind\Http\{
Request,
Method,
Expand Down
13 changes: 12 additions & 1 deletion src/Implementation.php → src/Transport/Implementation.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;
namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\{
Config,
Success,
Information,
Redirection,
ClientError,
ServerError,
Failure,
ConnectionFailed,
MalformedResponse,
};
use Innmind\Http\Request;
use Innmind\Immutable\Either;

Expand Down
11 changes: 9 additions & 2 deletions src/Logger.php → src/Transport/Logger.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;

namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\{
Success,
Information,
Redirection,
ClientError,
ServerError,
};
use Innmind\Http\{
Request,
Response,
Expand Down
3 changes: 2 additions & 1 deletion src/Via.php → src/Transport/Via.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php
declare(strict_types = 1);

namespace Innmind\HttpTransport;
namespace Innmind\HttpTransport\Transport;

use Innmind\HttpTransport\Success;
use Innmind\Http\Request;
use Innmind\Immutable\Either;

Expand Down
Loading