From 713d6883f2063b7d6ce9f6ee8c0cd77a7f696341 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Tue, 21 Jan 2020 21:55:17 +0100 Subject: [PATCH] Added mailer --- api/.env | 4 + api/composer.json | 2 + api/composer.lock | 169 +++++++++++++++++++++++++++++++- api/config/packages/mailer.yaml | 3 + api/symfony.lock | 18 ++++ 5 files changed, 195 insertions(+), 1 deletion(-) create mode 100644 api/config/packages/mailer.yaml diff --git a/api/.env b/api/.env index 235c628f..fb13e6e3 100644 --- a/api/.env +++ b/api/.env @@ -57,3 +57,7 @@ JWT_PASSPHRASE=bafe1dc254b45471754c221081f874aa MERCURE_PUBLISH_URL=http://mercure/hub MERCURE_JWT_SECRET=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyJmb28iLCJiYXIiXSwicHVibGlzaCI6WyJmb28iXX19.LRLvirgONK13JgacQ_VbcjySbVhkSmHy3IznH3tA9PM ###< symfony/mercure-bundle ### + +###> symfony/mailer ### +# MAILER_DSN=smtp://localhost +###< symfony/mailer ### diff --git a/api/composer.json b/api/composer.json index b69f6993..11bc2535 100644 --- a/api/composer.json +++ b/api/composer.json @@ -12,6 +12,7 @@ "guzzlehttp/guzzle": "^6.3", "knplabs/knp-markdown-bundle": "^1.8", "lexik/jwt-authentication-bundle": "^2.6", + "messagebird/php-rest-api": "^1.16", "phpdocumentor/reflection-docblock": "^4.3", "ramsey/uuid": "^3.8", "ramsey/uuid-doctrine": "^1.5", @@ -22,6 +23,7 @@ "symfony/dotenv": "4.3.*", "symfony/flex": "^1.1", "symfony/framework-bundle": "4.3.*", + "symfony/mailer": "4.4.*", "symfony/mercure-bundle": "*", "symfony/property-access": "4.4.*", "symfony/yaml": "4.3.*", diff --git a/api/composer.lock b/api/composer.lock index cbdfd079..cd9a0a9c 100644 --- a/api/composer.lock +++ b/api/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "48af4cac3c2eac2289e6cf339b11a6ea", + "content-hash": "1e9f33cbb4b0690c985dd1539d61a15c", "packages": [ { "name": "api-platform/api-pack", @@ -1729,6 +1729,63 @@ ], "time": "2015-02-27T09:45:49+00:00" }, + { + "name": "egulias/email-validator", + "version": "2.1.14", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "c4b8d12921999d8a561004371701dbc2e05b5ece" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/c4b8d12921999d8a561004371701dbc2e05b5ece", + "reference": "c4b8d12921999d8a561004371701dbc2e05b5ece", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^1.0.1", + "php": ">=5.5" + }, + "require-dev": { + "dominicsayers/isemail": "^3.0.7", + "phpunit/phpunit": "^4.8.36|^7.5.15", + "satooshi/php-coveralls": "^1.0.1" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "EmailValidator" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "time": "2020-01-05T14:11:20+00:00" + }, { "name": "fig/link-util", "version": "1.1.0", @@ -2474,6 +2531,48 @@ ], "time": "2019-11-22T14:22:26+00:00" }, + { + "name": "messagebird/php-rest-api", + "version": "v1.16.1", + "source": { + "type": "git", + "url": "https://github.com/messagebird/php-rest-api.git", + "reference": "6a1666bdbfc4f33c54f090308cce7dc47c5e3014" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/messagebird/php-rest-api/zipball/6a1666bdbfc4f33c54f090308cce7dc47c5e3014", + "reference": "6a1666bdbfc4f33c54f090308cce7dc47c5e3014", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "php": ">=5.4.0", + "symfony/polyfill-php56": "^1.10" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.25" + }, + "type": "library", + "autoload": { + "psr-4": { + "MessageBird\\": "src/MessageBird/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "MessageBird", + "email": "info@messagebird.com" + } + ], + "description": "MessageBird REST API client for PHP", + "homepage": "https://github.com/messagebird/php-rest-api", + "time": "2019-10-08T15:00:24+00:00" + }, { "name": "michelf/php-markdown", "version": "1.9.0", @@ -5304,6 +5403,74 @@ ], "time": "2019-11-26T23:16:41+00:00" }, + { + "name": "symfony/mailer", + "version": "v4.4.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "1e6e1d074be84eab728b617aa08349b8a00b6f44" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/1e6e1d074be84eab728b617aa08349b8a00b6f44", + "reference": "1e6e1d074be84eab728b617aa08349b8a00b6f44", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10", + "php": "^7.1.3", + "psr/log": "~1.0", + "symfony/event-dispatcher": "^4.3", + "symfony/mime": "^4.4|^5.0", + "symfony/service-contracts": "^1.1|^2" + }, + "conflict": { + "symfony/http-kernel": "<4.4", + "symfony/sendgrid-mailer": "<4.4" + }, + "require-dev": { + "symfony/amazon-mailer": "^4.4|^5.0", + "symfony/google-mailer": "^4.4|^5.0", + "symfony/http-client-contracts": "^1.1|^2", + "symfony/mailchimp-mailer": "^4.4|^5.0", + "symfony/mailgun-mailer": "^4.4|^5.0", + "symfony/messenger": "^4.4|^5.0", + "symfony/postmark-mailer": "^4.4|^5.0", + "symfony/sendgrid-mailer": "^4.4|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Mailer Component", + "homepage": "https://symfony.com", + "time": "2019-12-02T16:18:01+00:00" + }, { "name": "symfony/maker-bundle", "version": "v1.14.3", diff --git a/api/config/packages/mailer.yaml b/api/config/packages/mailer.yaml new file mode 100644 index 00000000..56a650d8 --- /dev/null +++ b/api/config/packages/mailer.yaml @@ -0,0 +1,3 @@ +framework: + mailer: + dsn: '%env(MAILER_DSN)%' diff --git a/api/symfony.lock b/api/symfony.lock index e97be40b..621c9679 100644 --- a/api/symfony.lock +++ b/api/symfony.lock @@ -112,6 +112,9 @@ "easyrdf/easyrdf": { "version": "0.9.1" }, + "egulias/email-validator": { + "version": "2.1.14" + }, "fig/link-util": { "version": "1.0.0" }, @@ -163,6 +166,9 @@ "config/packages/lexik_jwt_authentication.yaml" ] }, + "messagebird/php-rest-api": { + "version": "v1.16.1" + }, "michelf/php-markdown": { "version": "1.9.0" }, @@ -384,6 +390,18 @@ "symfony/intl": { "version": "v4.3.4" }, + "symfony/mailer": { + "version": "4.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.3", + "ref": "15658c2a0176cda2e7dba66276a2030b52bd81b2" + }, + "files": [ + "config/packages/mailer.yaml" + ] + }, "symfony/maker-bundle": { "version": "1.0", "recipe": {