-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added type to
PrePublishMessage
(#20)
* Added type to `PrePublishMessage` * minor * Applied fixes from StyleCI * Added more tests * Removed rabbit MQ publisher * Applied fixes from StyleCI [ci skip] [skip ci] * Removed monolog and added dummy logger * Applied fixes from StyleCI [ci skip] [skip ci] * removed comments * typo * added comments * Updated comment
- Loading branch information
Showing
14 changed files
with
136 additions
and
14 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
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
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
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,44 @@ | ||
<?php | ||
|
||
namespace Happyr\Mq2phpBundle\Tests\Functional\app\Service; | ||
|
||
use Psr\Log\LoggerInterface; | ||
|
||
class DummyLogger implements LoggerInterface | ||
{ | ||
public function emergency($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function alert($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function critical($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function error($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function warning($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function notice($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function info($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function debug($message, array $context = []) | ||
{ | ||
} | ||
|
||
public function log($level, $message, array $context = []) | ||
{ | ||
} | ||
} |
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,12 @@ | ||
<?php | ||
|
||
namespace Happyr\Mq2phpBundle\Tests\Functional\app\Service; | ||
|
||
use SimpleBus\Asynchronous\Publisher\Publisher; | ||
|
||
class DummyPublisher implements Publisher | ||
{ | ||
public function publish($message) | ||
{ | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
imports: | ||
- { resource: framework.yml } | ||
- { resource: services.yml } | ||
|
||
happyr_mq2php: | ||
enabled: true | ||
|
||
simple_bus_asynchronous: | ||
events: | ||
publisher_service_id: 'happyr.mq2php.dummy_publisher' | ||
commands: | ||
publisher_service_id: 'happyr.mq2php.dummy_publisher' |
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,6 @@ | ||
services: | ||
happyr.mq2php.dummy_publisher: | ||
class: Happyr\Mq2phpBundle\Tests\Functional\app\Service\DummyPublisher | ||
|
||
logger: | ||
class: Happyr\Mq2phpBundle\Tests\Functional\app\Service\DummyLogger |
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