diff --git a/composer.json b/composer.json index 50c998ab..2ed8e992 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "hyperf/hyperf-skeleton", + "name": "opencodeco/rinha-de-backend", "type": "project", "keywords": [ "php", @@ -9,47 +9,39 @@ "microservice", "middleware" ], - "description": "A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.", - "license": "Apache-2.0", + "description": "Swoole e Hyperf na Rinha de Back-end.", + "license": "MIT", "require": { "php": ">=8.0", - "hyperf/cache": "~3.0.0", - "hyperf/command": "~3.0.0", - "hyperf/config": "~3.0.0", - "hyperf/db-connection": "~3.0.0", - "hyperf/framework": "~3.0.0", - "hyperf/guzzle": "~3.0.0", - "hyperf/http-server": "~3.0.0", - "hyperf/logger": "~3.0.0", - "hyperf/memory": "~3.0.0", - "hyperf/process": "~3.0.0", - "hyperf/database": "~3.0.0", - "hyperf/redis": "~3.0.0" + "hyperf/cache": "^3.0", + "hyperf/command": "^3.0", + "hyperf/config": "^3.0", + "hyperf/db-connection": "^3.0", + "hyperf/framework": "^3.0", + "hyperf/guzzle": "^3.0", + "hyperf/http-server": "^3.0", + "hyperf/logger": "^3.0", + "hyperf/memory": "^3.0", + "hyperf/process": "^3.0", + "hyperf/database": "^3.0", + "hyperf/redis": "^3.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.0", - "hyperf/devtool": "~3.0.0", - "hyperf/testing": "~3.0.0", + "hyperf/devtool": "^3.0", + "hyperf/testing": "^3.0", "mockery/mockery": "^1.0", "phpstan/phpstan": "^1.0", "swoole/ide-helper": "^5.0" }, - "suggest": { - "ext-openssl": "Required to use HTTPS.", - "ext-json": "Required to use JSON.", - "ext-pdo": "Required to use MySQL Client.", - "ext-pdo_mysql": "Required to use MySQL Client.", - "ext-redis": "Required to use Redis Client." - }, "autoload": { "psr-4": { "App\\": "app/" - }, - "files": [] + } }, "autoload-dev": { "psr-4": { - "HyperfTest\\": "./test/" + "Test\\": "test/" } }, "minimum-stability": "dev", @@ -60,9 +52,6 @@ }, "extra": [], "scripts": { - "post-root-package-install": [ - "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" - ], "post-autoload-dump": [ "rm -rf runtime/container" ], diff --git a/composer.lock b/composer.lock index 4989fe26..2a8faa53 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2bce2997c8fd899e94daa8b108c53fb1", + "content-hash": "b2455d26b4f37c7f6beedf37ee2e9c94", "packages": [ { "name": "doctrine/inflector", diff --git a/test/Cases/ExampleTest.php b/test/Cases/ExampleTest.php index b7461e3a..48dcbf55 100644 --- a/test/Cases/ExampleTest.php +++ b/test/Cases/ExampleTest.php @@ -10,9 +10,9 @@ * @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE */ -namespace HyperfTest\Cases; +namespace Test\Cases; -use HyperfTest\HttpTestCase; +use Test\HttpTestCase; /** * @internal diff --git a/test/HttpTestCase.php b/test/HttpTestCase.php index 08035bd4..aa09182b 100644 --- a/test/HttpTestCase.php +++ b/test/HttpTestCase.php @@ -10,7 +10,7 @@ * @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE */ -namespace HyperfTest; +namespace Test; use Hyperf\Testing\Client; use PHPUnit\Framework\TestCase;