Initial commit
This commit is contained in:
19
common/components/PostmarkComponent.php
Normal file
19
common/components/PostmarkComponent.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace common\components;
|
||||
|
||||
use Postmark\PostmarkClient;
|
||||
use yii\base\Component;
|
||||
|
||||
class PostmarkComponent extends Component
|
||||
{
|
||||
/** @var PostmarkClient */
|
||||
public PostmarkClient $client;
|
||||
public mixed $serverToken;
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->client = new PostmarkClient($this->serverToken);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user