forked from zanfranceschi/rinha-de-backend-2023-q3
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82b37ae
commit e882e93
Showing
29 changed files
with
152 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,12 @@ | |
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
*/ | ||
$header = <<<'EOF' | ||
This file is part of Hyperf. | ||
This file is part of OpenCodeCo. | ||
@link https://www.hyperf.io | ||
@document https://hyperf.wiki | ||
@contact [email protected] | ||
@license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
@link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
@document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
@contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
@license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
EOF; | ||
|
||
return (new PhpCsFixer\Config()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
|
||
namespace App\Controller; | ||
|
||
use Hyperf\Di\Annotation\Inject; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
|
||
namespace App\Controller; | ||
|
||
class IndexController extends AbstractController | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
|
||
namespace App\Exception\Handler; | ||
|
||
use Hyperf\Contract\StdoutLoggerInterface; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
|
||
namespace App\Listener; | ||
|
||
use Hyperf\Collection\Arr; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
|
||
namespace App\Listener; | ||
|
||
use Hyperf\Command\Event\AfterExecute; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
|
||
namespace App\Model; | ||
|
||
use Hyperf\DbConnection\Model\Model as BaseModel; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'scan' => [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'default' => [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
use function Hyperf\Support\env; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'generator' => [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'handler' => [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler::class, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'default' => [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'http' => [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
declare(strict_types=1); | ||
/** | ||
* This file is part of Hyperf. | ||
* This file is part of OpenCodeCo. | ||
* | ||
* @link https://www.hyperf.io | ||
* @document https://hyperf.wiki | ||
* @contact [email protected] | ||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE | ||
* @link https://github.com/opencodeco/rinha-de-backend-2023-q3 | ||
* @document https://github.com/opencodeco/rinha-de-backend-2023-q3/wiki | ||
* @contact https://github.com/opencodeco/rinha-de-backend-2023-q3/discussions | ||
* @license https://github.com/opencodeco/rinha-de-backend-2023-q3/blob/dev/LICENSE | ||
*/ | ||
return [ | ||
'default' => [ | ||
|
Oops, something went wrong.