This commit is contained in:
2024-12-16 15:55:29 +08:00
parent ae20755bd7
commit 34ab8f145c
3 changed files with 663 additions and 660 deletions
-17
View File
@@ -1,17 +0,0 @@
<?php
namespace Kiri\Router\Annotate;
#[\Attribute(((\Attribute::TARGET_METHOD)))]
class ContentType
{
/**
* @param string $contentType
*/
public function __construct(public string $contentType = "text/html")
{
}
}
+19
View File
@@ -0,0 +1,19 @@
<?php
namespace Kiri\Router\Annotate;
use Kiri\Router\ContentType;
#[\Attribute(\Attribute::TARGET_METHOD)]
class ResponseContentType
{
/**
* @param ContentType $contentType
*/
public function __construct(public ContentType $contentType = ContentType::JSON)
{
}
}
+644 -643
View File
File diff suppressed because it is too large Load Diff