Skip to content

Commit 6cb8902

Browse files
committed
Update namespace according to internal discussion
1 parent 88a5edb commit 6cb8902

23 files changed

+202
-176
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"php": ">=5.4",
66
"symfony/options-resolver": "^2.6|^3.0",
77
"php-http/httplug": "1.0.0-beta",
8-
"php-http/message-factory": "^1.0"
8+
"php-http/message-factory": "^1.0.2"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "^4.8",
@@ -17,12 +17,12 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"Http\\Socket\\": "src/"
20+
"Http\\Client\\Socket\\": "src/"
2121
}
2222
},
2323
"autoload-dev": {
2424
"psr-4": {
25-
"Http\\Socket\\Tests\\": "tests/"
25+
"Http\\Client\\Socket\\Tests\\": "tests/"
2626
}
2727
},
2828
"license": "MIT",

src/SocketHttpClient.php renamed to src/Client.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
22

3-
namespace Http\Socket;
3+
namespace Http\Client\Socket;
44

55
use Http\Client\Exception\NetworkException;
66
use Http\Client\HttpClient;
7-
use Http\Client\Utils\BatchRequest;
87
use Http\Message\MessageFactory;
98
use Psr\Http\Message\RequestInterface;
109
use Symfony\Component\OptionsResolver\Options;
@@ -17,7 +16,7 @@
1716
*
1817
* @author Joel Wurtz <[email protected]>
1918
*/
20-
class SocketHttpClient implements HttpClient
19+
class Client implements HttpClient
2120
{
2221
use RequestWriter;
2322
use ResponseReader;

src/Exception/StreamException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Http\Socket\Exception;
3+
namespace Http\Client\Socket\Exception;
44

55
use Http\Client\Exception;
66

src/Exception/TimeoutException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Http\Socket\Exception;
3+
namespace Http\Client\Socket\Exception;
44

55
class TimeoutException extends StreamException
66
{

src/RequestWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Http\Socket;
3+
namespace Http\Client\Socket;
44

55
use Http\Client\Exception\NetworkException;
66
use Psr\Http\Message\RequestInterface;

src/ResponseReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Http\Socket;
3+
namespace Http\Client\Socket;
44

55
use Http\Client\Exception\NetworkException;
66
use Http\Message\MessageFactory;

src/Stream.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Http\Socket;
3+
namespace Http\Client\Socket;
44

5-
use Http\Socket\Exception\StreamException;
6-
use Http\Socket\Exception\TimeoutException;
5+
use Http\Client\Socket\Exception\StreamException;
6+
use Http\Client\Socket\Exception\TimeoutException;
77
use Psr\Http\Message\StreamInterface;
88

99
/**

tests/BaseTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Http\Socket\Tests;
3+
namespace Http\Client\Socket\Tests;
44

55
class BaseTestCase extends \PHPUnit_Framework_TestCase
66
{

tests/SocketClientFeatureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Http\Socket\Tests;
3+
namespace Http\Client\Socket\Tests;
44

55
use Http\Client\Tests\HttpFeatureTest;
66
use Http\Message\MessageFactory\GuzzleMessageFactory;
7-
use Http\Socket\SocketHttpClient;
7+
use Http\Client\Socket\Client as SocketHttpClient;
88

99
class SocketClientFeatureTest extends HttpFeatureTest
1010
{

tests/SocketHttpAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Http\Socket\Tests;
3+
namespace Http\Client\Socket\Tests;
44

55
use Http\Client\Tests\HttpClientTest;
66
use Http\Message\MessageFactory\GuzzleMessageFactory;
7-
use Http\Socket\SocketHttpClient;
7+
use Http\Client\Socket\Client as SocketHttpClient;
88

99
class SocketHttpAdapterTest extends HttpClientTest
1010
{

0 commit comments

Comments
 (0)