Skip to content

Commit

Permalink
Merge pull request #2 from ucraft-com/feature/COMMERCE-4735
Browse files Browse the repository at this point in the history
COMMERCE-4735 Change payload to match new notifications logic
  • Loading branch information
tiko-star authored Sep 20, 2023
2 parents 8f26b5d + 57e26cf commit e20f283
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 113 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"ext-pcntl": "*",
"ext-rdkafka": "*",
"symfony/serializer": "6.2.x-dev",
"symfony/property-access": "6.2.x-dev",
"symfony/mailer": "6.2.x-dev"
"symfony/property-access": "6.2.x-dev"
}
}
10 changes: 0 additions & 10 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,4 @@
| fnv1a_random - FNV-1a hash of key (NULL keys are randomly partitioned).
*/
'partitioner' => env('KAFKA_PARTITIONER', 'random'),

/*
| In order to use our Kafka-based mail server put this piece of code in the config/mail.php file.
|
'kafka-mailer' => [
'transport' => 'kafka-mailer,
'topic' => env('KAFKA_MAILER_TOPIC'),
],
|
*/
];
7 changes: 0 additions & 7 deletions src/KafkaProducerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Uc\KafkaProducer;

use Uc\KafkaProducer\Transports\KafkaTransport;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\ServiceProvider;
use Uc\KafkaProducer\Providers\EventServiceProvider;

Expand Down Expand Up @@ -55,7 +53,6 @@ public function register() : void
* Bootstrap any application services.
*
* @return void
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function boot() : void
{
Expand All @@ -67,9 +64,5 @@ public function boot() : void
'kafka-producer-config'
);
}

Mail::extend('kafka-mailer', function ($config) {
return $this->app->make(KafkaTransport::class, ['topic' => $config['topic']]);
});
}
}
94 changes: 0 additions & 94 deletions src/Transports/KafkaTransport.php

This file was deleted.

0 comments on commit e20f283

Please sign in to comment.