Skip to content

Commit

Permalink
🔨 determine the ✨ namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cclilshy committed Oct 17, 2024
1 parent e4d05b2 commit f88aa29
Show file tree
Hide file tree
Showing 18 changed files with 48 additions and 48 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"autoload": {
"psr-4": {
"Psc\\Core\\Http\\": "src/"
"Ripple\\App\\Http\\": "src/"
}
},
"require": {
Expand All @@ -21,7 +21,7 @@
"ext-curl": "*",
"ext-parallel": "*",
"ext-zlib": "*",
"cloudtay/ripple": "dev-main",
"cloudtay/ripple": "0.8.x-dev",
"phpunit/phpunit": "*",
"friendsofphp/php-cs-fixer": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Client/Capture/ServerSentEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Client\Capture;
namespace Ripple\App\Http\Client\Capture;

use Closure;
use GuzzleHttp\Psr7\Response;
Expand Down
12 changes: 6 additions & 6 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Client;
namespace Ripple\App\Http\Client;

use Closure;
use Co\IO;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Response;
use InvalidArgumentException;
use Psc\Core\Coroutine\Promise;
use Psc\Core\Socket\SocketStream;
use Psc\Core\Socket\Tunnel\Http;
use Psc\Core\Socket\Tunnel\Socks5;
use Psc\Core\Stream\Exception\ConnectionException;
use Ripple\Coroutine\Promise;
use Ripple\Socket\SocketStream;
use Ripple\Socket\Tunnel\Http;
use Ripple\Socket\Tunnel\Socks5;
use Ripple\Stream\Exception\ConnectionException;
use Psr\Http\Message\RequestInterface;
use Throwable;

Expand Down
6 changes: 3 additions & 3 deletions src/Client/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Client;
namespace Ripple\App\Http\Client;

use GuzzleHttp\Psr7\Response;
use Psc\Core\Socket\SocketStream;
use Psc\Core\Stream\Exception\RuntimeException;
use Ripple\Socket\SocketStream;
use Ripple\Stream\Exception\RuntimeException;
use Psr\Http\Message\ResponseInterface;

use function count;
Expand Down
10 changes: 5 additions & 5 deletions src/Client/ConnectionPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Client;
namespace Ripple\App\Http\Client;

use Co\IO;
use Psc\Core\Socket\SocketStream;
use Psc\Core\Socket\Tunnel\Http;
use Psc\Core\Socket\Tunnel\Socks5;
use Psc\Core\Stream\Exception\ConnectionException;
use Ripple\Socket\SocketStream;
use Ripple\Socket\Tunnel\Http;
use Ripple\Socket\Tunnel\Socks5;
use Ripple\Stream\Exception\ConnectionException;
use Throwable;

use function array_pop;
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Enum;
namespace Ripple\App\Http\Enum;

enum Method
{
Expand Down
2 changes: 1 addition & 1 deletion src/Enum/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Enum;
namespace Ripple\App\Http\Enum;

enum Status
{
Expand Down
10 changes: 5 additions & 5 deletions src/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http;
namespace Ripple\App\Http;

use Psc\Core\Http\Client\Client;
use Psc\Core\Http\Server\Server;
use Psc\Core\LibraryAbstract;
use Psc\Core\Stream\Exception\ConnectionException;
use Ripple\App\Http\Client\Client;
use Ripple\App\Http\Server\Server;
use Ripple\LibraryAbstract;
use Ripple\Stream\Exception\ConnectionException;
use Psc\Plugins\Guzzle\Guzzle;
use Psc\Utils\Output;

Expand Down
2 changes: 1 addition & 1 deletion src/Server/Chunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server;
namespace Ripple\App\Http\Server;

use function dechex;
use function explode;
Expand Down
10 changes: 5 additions & 5 deletions src/Server/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server;
namespace Ripple\App\Http\Server;

use Closure;
use Psc\Core\Http\Server\Exception\FormatException;
use Psc\Core\Http\Server\Upload\MultipartHandler;
use Psc\Core\Socket\SocketStream;
use Psc\Core\Stream\Exception\RuntimeException;
use Ripple\App\Http\Server\Exception\FormatException;
use Ripple\App\Http\Server\Upload\MultipartHandler;
use Ripple\Socket\SocketStream;
use Ripple\Stream\Exception\RuntimeException;
use Psc\Utils\Output;
use Throwable;

Expand Down
2 changes: 1 addition & 1 deletion src/Server/Exception/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server\Exception;
namespace Ripple\App\Http\Server\Exception;

/**
* @Author cclilshy
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Exception/FormatException.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server\Exception;
namespace Ripple\App\Http\Server\Exception;

/**
* @Author cclilshy
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Exception/TransferException.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server\Exception;
namespace Ripple\App\Http\Server\Exception;

/**
* @Author cclilshy
Expand Down
4 changes: 2 additions & 2 deletions src/Server/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server;
namespace Ripple\App\Http\Server;

use Psc\Core\Socket\SocketStream;
use Ripple\Socket\SocketStream;

use function array_merge;
use function is_string;
Expand Down
8 changes: 4 additions & 4 deletions src/Server/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server;
namespace Ripple\App\Http\Server;

use Closure;
use Generator;
use Psc\Core\Socket\SocketStream;
use Psc\Core\Stream\Exception\ConnectionException;
use Psc\Core\Stream\Stream;
use Ripple\Socket\SocketStream;
use Ripple\Stream\Exception\ConnectionException;
use Ripple\Stream\Stream;
use Throwable;

use function basename;
Expand Down
10 changes: 5 additions & 5 deletions src/Server/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server;
namespace Ripple\App\Http\Server;

use Closure;
use Co\IO;
use InvalidArgumentException;
use Psc\Core\Http\Enum\Status;
use Psc\Core\Http\Server\Exception\FormatException;
use Psc\Core\Socket\SocketStream;
use Psc\Core\Stream\Exception\ConnectionException;
use Ripple\App\Http\Enum\Status;
use Ripple\App\Http\Server\Exception\FormatException;
use Ripple\Socket\SocketStream;
use Ripple\Stream\Exception\ConnectionException;
use Psc\Utils\Output;
use Throwable;

Expand Down
4 changes: 2 additions & 2 deletions src/Server/Upload/MultipartHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
* 由于软件或软件的使用或其他交易而引起的任何索赔、损害或其他责任承担责任。
*/

namespace Psc\Core\Http\Server\Upload;
namespace Ripple\App\Http\Server\Upload;

use Psc\Core\Http\Server\Exception\FormatException;
use Ripple\App\Http\Server\Exception\FormatException;
use Symfony\Component\HttpFoundation\File\UploadedFile;

use function array_pop;
Expand Down
4 changes: 2 additions & 2 deletions tests/HttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use GuzzleHttp\Exception\GuzzleException;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Psc\Core\Coroutine\Promise;
use Psc\Core\Http\Server\Request;
use Ripple\Coroutine\Promise;
use Ripple\App\Http\Server\Request;
use Psc\Utils\Output;
use Symfony\Component\HttpFoundation\File\UploadedFile;

Expand Down

0 comments on commit f88aa29

Please sign in to comment.