Skip to content

Commit 1b71ea9

Browse files
committed
update namespace
1 parent 4834d35 commit 1b71ea9

39 files changed

+144
-168
lines changed

.editorconfig

Lines changed: 0 additions & 32 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ class MyResponse extends Response {
9292

9393
## License
9494

95-
[MIT](License)
95+
[MIT](LICENSE)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"autoload": {
2020
"psr-4": {
21-
"PhpComp\\Http\\" : "src/"
21+
"PhpComp\\Http\\Message\\" : "src/"
2222
}
2323
},
2424
"suggest": {

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertNoticesToExceptions="true"
99
convertWarningsToExceptions="true"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Inhere Http Test Suite">

src/Body.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* Time: 18:02
77
*/
88

9-
namespace Inhere\Http;
9+
namespace PhpComp\Http\Message;
1010

11-
use Inhere\Http\Component\TempStream;
11+
use PhpComp\Http\Message\Component\TempStream;
1212

1313
/**
1414
* Body

src/Component/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 下午2:04
77
*/
88

9-
namespace Inhere\Http\Component;
9+
namespace PhpComp\Http\Message\Component;
1010

1111
/**
1212
* Class Collection
13-
* @package Inhere\Http\Component
13+
* @package PhpComp\Http\Message\Component
1414
*/
1515
class Collection extends \ArrayObject
1616
{

src/Component/Environment.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
* File: Environment.php
88
*/
99

10-
namespace Inhere\Http\Component;
10+
namespace PhpComp\Http\Message\Component;
1111

1212
/**
1313
* mock 环境信息
1414
* Class Environment
15-
* @package Inhere\Http\Component
15+
* @package PhpComp\Http\Message\Component
1616
*/
1717
class Environment extends Collection
1818
{
@@ -35,7 +35,7 @@ public static function mock(array $userData = []): self
3535
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
3636
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.8',
3737
'HTTP_ACCEPT_CHARSET' => 'utf-8;q=0.7,*;q=0.3',
38-
'HTTP_USER_AGENT' => 'Slim Framework',
38+
'HTTP_USER_AGENT' => 'MY Framework',
3939
'REMOTE_ADDR' => '127.0.0.1',
4040
'REQUEST_TIME' => \time(),
4141
'REQUEST_TIME_FLOAT' => \microtime(true),

src/Component/InputStream.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* Time: 下午12:29
77
*/
88

9-
namespace Inhere\Http\Component;
9+
namespace PhpComp\Http\Message\Component;
1010

11-
use Inhere\Http\Stream;
11+
use PhpComp\Http\Message\Stream;
1212

1313
/**
1414
* Class InputStream
15-
* @package Inhere\Http\Component
15+
* @package PhpComp\Http\Message\Component
1616
*/
1717
class InputStream extends Stream
1818
{

src/Component/MemoryStream.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* Time: 22:25
77
*/
88

9-
namespace Inhere\Http\Component;
9+
namespace PhpComp\Http\Message\Component;
1010

11-
use Inhere\Http\Stream;
11+
use PhpComp\Http\Message\Stream;
1212

1313
/**
1414
* Class MemoryStream
15-
* @package Inhere\Http\Component
15+
* @package PhpComp\Http\Message\Component
1616
*/
1717
class MemoryStream extends Stream
1818
{

src/Component/TempStream.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
* Time: 下午12:29
77
*/
88

9-
namespace Inhere\Http\Component;
9+
namespace PhpComp\Http\Message\Component;
1010

11-
use Inhere\Http\Stream;
11+
use PhpComp\Http\Message\Stream;
1212

1313
/**
1414
* Class TempStream
15-
* @package Inhere\Http
15+
* @package PhpComp\Http\Message
1616
*/
1717
class TempStream extends Stream
1818
{

0 commit comments

Comments
 (0)