for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\Debug\Viewer\Panels\Services;
use Psr\Http\Message\ResponseInterface;
use Yiisoft\DataResponse\DataResponseFactoryInterface;
final class PanelServicesController
{
private DataResponseFactoryInterface $responseFactory;
/**
* PanelInfoController constructor.
*/
public function __construct(
DataResponseFactoryInterface $responseFactory
) {
$this->responseFactory = $responseFactory;
}
* @return ResponseInterface
public function view(): ResponseInterface
return $this->responseFactory->createResponse(file_get_contents(__DIR__ . '/view.html'));