Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from codeliner/feature/async_switch_event_bus…
…_support Add event bus support to AsyncSwitchMessageRouter
- Loading branch information
Showing
4 changed files
with
80 additions
and
9 deletions.
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
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,26 @@ | ||
<?php | ||
/* | ||
* This file is part of the prooph/service-bus. | ||
* (c) 2014-2015 prooph software GmbH <contact@prooph.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* Date: 08/30/16 - 8:35 PM | ||
*/ | ||
namespace ProophTest\ServiceBus\Mock; | ||
|
||
use Prooph\Common\Messaging\DomainEvent; | ||
use Prooph\Common\Messaging\PayloadConstructable; | ||
use Prooph\Common\Messaging\PayloadTrait; | ||
use Prooph\ServiceBus\Async\AsyncMessage; | ||
|
||
final class AsyncEvent extends DomainEvent implements PayloadConstructable, AsyncMessage | ||
{ | ||
use PayloadTrait; | ||
|
||
public static function createEvent($data) | ||
{ | ||
return new self(['data' => $data]); | ||
} | ||
} |
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