Skip to content

Commit

Permalink
Merge pull request #20 from broadway/broadway-1.0
Browse files Browse the repository at this point in the history
use broadway/broadway 1.0
  • Loading branch information
asm89 authored Mar 7, 2017
2 parents 1dfea7f + 81729da commit 59debc0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": "MIT",
"require": {
"php": ">=5.5.9",
"broadway/broadway": "^1.0@dev",
"broadway/broadway": "^1.0",
"doctrine/doctrine-bundle": "^1.0",
"symfony/console": "^2.3|^3.0",
"symfony/http-kernel": "^2.3|^3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/Command/CommandMetadataEnricher.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
namespace Broadway\Bundle\BroadwayBundle\Command;

use Broadway\Domain\Metadata;
use Broadway\EventSourcing\MetadataEnrichment\MetadataEnricherInterface;
use Broadway\EventSourcing\MetadataEnrichment\MetadataEnricher;
use Symfony\Component\Console\Event\ConsoleCommandEvent;

/**
* Enricher that adds information about the excecuted console command.
*/
class CommandMetadataEnricher implements MetadataEnricherInterface
class CommandMetadataEnricher implements MetadataEnricher
{
private $event;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Broadway\Bundle\BroadwayBundle\DependencyInjection\Configuration\CompilerPass;

use Broadway\Bundle\BroadwayBundle\DependencyInjection\RegisterBusSubscribersCompilerPass;
use Broadway\EventHandling\EventListenerInterface;
use Broadway\EventHandling\EventListener;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
Expand All @@ -29,7 +29,7 @@ protected function registerCompilerPass(ContainerBuilder $container)
new RegisterBusSubscribersCompilerPass(
'broadway.event_handling.event_bus',
'broadway.domain.event_listener',
EventListenerInterface::class
EventListener::class
)
);
}
Expand All @@ -44,11 +44,11 @@ public function it_registers_event_bus_subscribers()
new Definition()
);

$eventListener1 = new Definition(EventListenerInterface::class);
$eventListener1 = new Definition(EventListener::class);
$eventListener1->addTag('broadway.domain.event_listener');
$this->setDefinition('event_listener_1', $eventListener1);

$eventListener2 = new Definition(EventListenerInterface::class);
$eventListener2 = new Definition(EventListener::class);
$eventListener2->addTag('broadway.domain.event_listener');
$this->setDefinition('event_listener_2', $eventListener2);

Expand Down

0 comments on commit 59debc0

Please sign in to comment.