This commit is contained in:
2026-09-15 10:26:34 +08:00
commit ecf36afa56
10493 changed files with 1404888 additions and 0 deletions
@@ -0,0 +1,40 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\TestModuleControllerBackpressure\Controller\Read;
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Response\Http as HttpResponse;
class Read extends Action
{
/**
* @var int
*/
private int $counter = 0;
/**
* @inheritDoc
*/
public function execute()
{
/** @var HttpResponse $response */
$response = $this->getResponse();
return $response->representJson('{"str": "controller-read", "counter": ' .(++$this->counter) .'}');
}
public function resetCounter(): void
{
$this->counter = 0;
}
public function getCounter(): int
{
return $this->counter;
}
}