This commit is contained in:
2021-08-12 12:40:06 +08:00
parent 39af292171
commit 9a6c7b835b
19 changed files with 655 additions and 29 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
namespace Server\Abstracts;
use Annotation\Inject;
use Server\Constrict\Response as CResponse;
use Server\Constrict\ResponseEmitter;
/**
*
*/
trait ResponseHelper
{
/** @var CResponse|mixed */
#[Inject(CResponse::class)]
public CResponse $response;
/** @var ResponseEmitter */
#[Inject(ResponseEmitter::class)]
public ResponseEmitter $responseEmitter;
}