Skip to content

Commit

Permalink
Merge pull request #19 from mablae/fix-plugin-bug
Browse files Browse the repository at this point in the history
Remove check in extension since the plugins are not loaded yet.
  • Loading branch information
mablae authored Apr 6, 2017
2 parents b6436b2 + b604a77 commit f5bf1ed
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/DependencyInjection/ProophServiceBusExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,6 @@ private function loadBus(string $type, string $name, array $options, ContainerBu
new DefinitionDecorator('prooph_service_bus.' . $type . '_bus')
);

if (!empty($options['plugins'])) {
foreach ($options['plugins'] as $index => $util) {
if (! $container->hasDefinition($util)) {
throw new RuntimeException(
"A plugin must be a string representing an configured container service"
);
}
}
}

// define message factory
$messageFactoryId = 'prooph_service_bus.message_factory.'.$name;
$container->setDefinition(
Expand Down

0 comments on commit f5bf1ed

Please sign in to comment.