1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00

Merge branch '0.7.x' of github.com:appwrite/appwrite into swoole-and-functions

This commit is contained in:
Eldad Fux 2020-10-31 16:36:19 +02:00
commit f611dd57f1
3 changed files with 6 additions and 21 deletions

View file

@ -117,10 +117,8 @@ Appwrite's current structure is a combination of both [Monolithic](https://en.wi
│ ├── Extend
│ ├── Network
│ ├── OpenSSL
│ ├── Preloader
│ ├── Resize
│ ├── Storage
│ ├── Swoole
│ ├── Task
│ ├── Template
│ ├── URL

View file

@ -9,7 +9,7 @@
[![Hacktoberfest](https://badgen.net/badge/hacktoberfest/friendly/pink)](CONTRIBUTING.md)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)
[![Docker Pulls](https://badgen.net/docker/pulls/appwrite/appwrite)](https://travis-ci.org/appwrite/appwrite)
[![Docker Pulls](https://badgen.net/docker/pulls/appwrite/appwrite)](https://hub.docker.com/r/appwrite/appwrite)
[![Travis CI](https://badgen.net/travis/appwrite/appwrite?label=build)](https://travis-ci.com/appwrite/appwrite)
[![Twitter Account](https://badgen.net/twitter/follow/appwrite_io?label=twitter)](https://twitter.com/appwrite_io)
[![Follow Appwrite on StackShare](https://badgen.net/badge/follow%20on/stackshare/blue)](https://stackshare.io/appwrite)

View file

@ -35,6 +35,9 @@ use Appwrite\Utopia\Response\Model\Tag;
use Appwrite\Utopia\Response\Model\Task;
use Appwrite\Utopia\Response\Model\Webhook;
/**
* @method public function setStatusCode(int $code = 200): Response
*/
class Response extends SwooleResponse
{
// General
@ -221,25 +224,9 @@ class Response extends SwooleResponse
*
* return void
*/
public function dynamic(Document $document, string $model)
public function dynamic(Document $document, string $model): void
{
return $this->json($this->output($document, $model));
}
/**
* (Mocking method for avoiding IDE errors, remove when possible)
*
* Set status code
*
* Set HTTP response status code between available options. if status code is unknown an exception will be thrown
*
* @param int $code
* @return self
* @throws Exception
*/
public function setStatusCode(int $code = 200): self
{
return $this->setStatusCode($code);
$this->json($this->output($document, $model));
}
/**