Skip to content

Commit

Permalink
Upgrade to Brevo-PHP 2.x and to Brevo-Mailer 7.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Lago committed Oct 15, 2024
1 parent 18a9206 commit 10a81d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"php": ">=8.1",
"laravel/framework": "^10.0.0",
"illuminate/mail": "^10.0.0",
"getbrevo/brevo-php": "~v1.0.2",
"symfony/brevo-mailer": "~7.0.3",
"getbrevo/brevo-php": "~v2.0",
"symfony/brevo-mailer": "~v7.1",
"symfony/http-client": "^7.0"
},
"require-dev": {
Expand Down
3 changes: 3 additions & 0 deletions src/SmsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
namespace Juanparati\BrevoSuite;


use Illuminate\Contracts\Container\BindingResolutionException;

/**
* SmsMessage is a wrapper for Laravel notifications messages
*
Expand All @@ -23,6 +25,7 @@ class SmsMessage
*
* @param string $content
* @param string $type
* @throws BindingResolutionException
*/
public function __construct(string $content, string $type = 'transactional')
{
Expand Down
2 changes: 1 addition & 1 deletion src/SmsTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function send(Sms $message) : string


/**
* Transforms Model into SendTransacSms.
* Transforms Model into SendTransactSms.
*
* @param SmsModel $message
* @return SendTransacSms
Expand Down
3 changes: 3 additions & 0 deletions src/TemplateMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
namespace Juanparati\BrevoSuite;


use Illuminate\Contracts\Container\BindingResolutionException;

/**
* Class TemplateMessage.
*
Expand Down Expand Up @@ -44,6 +46,7 @@ class TemplateMessage
* TemplateMessage constructor.
*
* @param int $template_id
* @throws BindingResolutionException
*/
public function __construct(int $template_id)
{
Expand Down

0 comments on commit 10a81d5

Please sign in to comment.