diff options
| author | Kevin J Hoerr <kjhoerr@submelon.tech> | 2018-08-26 01:38:28 -0400 |
|---|---|---|
| committer | Kevin Hoerr <kjhoerr@submelon.tech> | 2018-08-31 23:24:45 -0400 |
| commit | 0965d62be00a7820f97284704dc71f37e661b412 (patch) | |
| tree | 5a5c9d69062e24aa926eb30447c5ff27e0a65492 /private/View/Output.php | |
| parent | 1e3946f04b5b602d3869a285d897acb0ba2b3c35 (diff) | |
| download | august-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.gz august-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.bz2 august-offensive-0965d62be00a7820f97284704dc71f37e661b412.zip | |
Begin migration to Rust; Add actix-web, diesel as main dependencies
Diffstat (limited to 'private/View/Output.php')
| -rw-r--r-- | private/View/Output.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/private/View/Output.php b/private/View/Output.php deleted file mode 100644 index af9975e..0000000 --- a/private/View/Output.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace AugustOffensive\View; - -use AugustOffensive\Model; - -/** - * Output formats for Results that are returned to the client. - */ -class Output -{ - /** - * Formats the result into JSON. - * - * @param Model\Result $result The result to return to the client. - * - * @return string - */ - public static function json (Model\Result $result): string - { - return json_encode(array( - "Result-Type" => $result->getResultType(), - "Content" => $result->getResult() - )); - } -} |
