-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Introduction of flag to determine if Message has been inter…
…cepted by the DebuggingAspect to prevent double interception (if FormatD.Mailer.QueueAdaptor is used the message is ->send() two times)
- Loading branch information
1 parent
9e04b71
commit 4871a25
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
namespace FormatD\Mailer\Traits; | ||
|
||
/* * | ||
* This script belongs to the Flow package "FormatD.Mailer". * | ||
* */ | ||
|
||
use Neos\Flow\Annotations as Flow; | ||
|
||
|
||
trait InterceptionTrait { | ||
|
||
/** | ||
* @var boolean | ||
*/ | ||
protected $intercepted = false; | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function isIntercepted(): bool | ||
{ | ||
return $this->intercepted; | ||
} | ||
|
||
/** | ||
* @param bool $intercepted | ||
*/ | ||
public function setIntercepted(bool $intercepted): void | ||
{ | ||
$this->intercepted = $intercepted; | ||
} | ||
|
||
} | ||
|
||
?> |