1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

chore: sync with 1.4.x

This commit is contained in:
Christy Jacob 2023-10-20 16:58:15 +04:00
parent df35c79bc2
commit ce14e05d1d
3 changed files with 13 additions and 80 deletions

View file

@ -55,7 +55,7 @@
"utopia-php/framework": "0.31.0", "utopia-php/framework": "0.31.0",
"utopia-php/image": "0.5.*", "utopia-php/image": "0.5.*",
"utopia-php/locale": "0.4.*", "utopia-php/locale": "0.4.*",
"utopia-php/logger": "0.3.1", "utopia-php/logger": "0.3.*",
"utopia-php/messaging": "0.1.*", "utopia-php/messaging": "0.1.*",
"utopia-php/migration": "0.3.*", "utopia-php/migration": "0.3.*",
"utopia-php/orchestration": "0.9.*", "utopia-php/orchestration": "0.9.*",

87
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "5f1e302b57b85e03be0b3983dc638486", "content-hash": "6ff937a260c3e0c09de9eb5e073d830d",
"packages": [ "packages": [
{ {
"name": "adhocore/jwt", "name": "adhocore/jwt",
@ -851,72 +851,6 @@
}, },
"time": "2021-10-08T21:21:46+00:00" "time": "2021-10-08T21:21:46+00:00"
}, },
{
"name": "laravel/pint",
"version": "v1.2.1",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "e60e2112ee779ce60f253695b273d1646a17d6f1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/e60e2112ee779ce60f253695b273d1646a17d6f1",
"reference": "e60e2112ee779ce60f253695b273d1646a17d6f1",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"ext-tokenizer": "*",
"ext-xml": "*",
"php": "^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.11.0",
"illuminate/view": "^9.32.0",
"laravel-zero/framework": "^9.2.0",
"mockery/mockery": "^1.5.1",
"nunomaduro/larastan": "^2.2.0",
"nunomaduro/termwind": "^1.14.0",
"pestphp/pest": "^1.22.1"
},
"bin": [
"builds/pint"
],
"type": "project",
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Seeders\\": "database/seeders/",
"Database\\Factories\\": "database/factories/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nuno Maduro",
"email": "enunomaduro@gmail.com"
}
],
"description": "An opinionated code formatter for PHP.",
"homepage": "https://laravel.com",
"keywords": [
"format",
"formatter",
"lint",
"linter",
"php"
],
"support": {
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2022-11-29T16:25:20+00:00"
},
{ {
"name": "league/csv", "name": "league/csv",
"version": "9.7.1", "version": "9.7.1",
@ -2914,26 +2848,25 @@
}, },
{ {
"name": "utopia-php/system", "name": "utopia-php/system",
"version": "0.7.1", "version": "0.7.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/utopia-php/system.git", "url": "https://github.com/utopia-php/system.git",
"reference": "01bf0d283aded0ee0a7a6e5ff540acf64270ab27" "reference": "4593d4d334b0c15879c4744a826e0362924c5d66"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/utopia-php/system/zipball/01bf0d283aded0ee0a7a6e5ff540acf64270ab27", "url": "https://api.github.com/repos/utopia-php/system/zipball/4593d4d334b0c15879c4744a826e0362924c5d66",
"reference": "01bf0d283aded0ee0a7a6e5ff540acf64270ab27", "reference": "4593d4d334b0c15879c4744a826e0362924c5d66",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"laravel/pint": "1.2.*",
"php": ">=8.0.0" "php": ">=8.0.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^9.3", "laravel/pint": "1.13.*",
"squizlabs/php_codesniffer": "^3.6", "phpstan/phpstan": "1.10.*",
"vimeo/psalm": "4.0.1" "phpunit/phpunit": "9.6.*"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -2965,9 +2898,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/utopia-php/system/issues", "issues": "https://github.com/utopia-php/system/issues",
"source": "https://github.com/utopia-php/system/tree/0.7.1" "source": "https://github.com/utopia-php/system/tree/0.7.2"
}, },
"time": "2023-08-30T09:14:37+00:00" "time": "2023-10-20T01:39:17+00:00"
}, },
{ {
"name": "utopia-php/vcs", "name": "utopia-php/vcs",

View file

@ -5,7 +5,6 @@ namespace Appwrite\Platform\Workers;
use Appwrite\Template\Template; use Appwrite\Template\Template;
use Exception; use Exception;
use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\PHPMailer;
use Swoole\Runtime;
use Utopia\App; use Utopia\App;
use Utopia\CLI\Console; use Utopia\CLI\Console;
use Utopia\Platform\Action; use Utopia\Platform\Action;
@ -40,7 +39,7 @@ class Mails extends Action
*/ */
public function action(Message $message, Registry $register): void public function action(Message $message, Registry $register): void
{ {
Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
$payload = $message->getPayload() ?? []; $payload = $message->getPayload() ?? [];
if (empty($payload)) { if (empty($payload)) {
@ -70,6 +69,7 @@ class Mails extends Action
$mail = empty($smtp) $mail = empty($smtp)
? $register->get('smtp') ? $register->get('smtp')
: $this->getMailer($smtp); : $this->getMailer($smtp);
$mail->clearAddresses(); $mail->clearAddresses();
$mail->clearAllRecipients(); $mail->clearAllRecipients();
$mail->clearReplyTos(); $mail->clearReplyTos();