Merge branch '0.7.x' of github.com:appwrite/appwrite into swoole-and-functions
This commit is contained in:
commit
f611dd57f1
|
@ -117,10 +117,8 @@ Appwrite's current structure is a combination of both [Monolithic](https://en.wi
|
||||||
│ ├── Extend
|
│ ├── Extend
|
||||||
│ ├── Network
|
│ ├── Network
|
||||||
│ ├── OpenSSL
|
│ ├── OpenSSL
|
||||||
│ ├── Preloader
|
|
||||||
│ ├── Resize
|
│ ├── Resize
|
||||||
│ ├── Storage
|
│ ├── Storage
|
||||||
│ ├── Swoole
|
|
||||||
│ ├── Task
|
│ ├── Task
|
||||||
│ ├── Template
|
│ ├── Template
|
||||||
│ ├── URL
|
│ ├── URL
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
[![Hacktoberfest](https://badgen.net/badge/hacktoberfest/friendly/pink)](CONTRIBUTING.md)
|
[![Hacktoberfest](https://badgen.net/badge/hacktoberfest/friendly/pink)](CONTRIBUTING.md)
|
||||||
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)
|
[![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)
|
[![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)
|
[![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)
|
[![Follow Appwrite on StackShare](https://badgen.net/badge/follow%20on/stackshare/blue)](https://stackshare.io/appwrite)
|
||||||
|
|
|
@ -35,6 +35,9 @@ use Appwrite\Utopia\Response\Model\Tag;
|
||||||
use Appwrite\Utopia\Response\Model\Task;
|
use Appwrite\Utopia\Response\Model\Task;
|
||||||
use Appwrite\Utopia\Response\Model\Webhook;
|
use Appwrite\Utopia\Response\Model\Webhook;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @method public function setStatusCode(int $code = 200): Response
|
||||||
|
*/
|
||||||
class Response extends SwooleResponse
|
class Response extends SwooleResponse
|
||||||
{
|
{
|
||||||
// General
|
// General
|
||||||
|
@ -221,25 +224,9 @@ class Response extends SwooleResponse
|
||||||
*
|
*
|
||||||
* return void
|
* return void
|
||||||
*/
|
*/
|
||||||
public function dynamic(Document $document, string $model)
|
public function dynamic(Document $document, string $model): void
|
||||||
{
|
{
|
||||||
return $this->json($this->output($document, $model));
|
$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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue