Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

III-1681: Added optional config for enabling/disabling uitpas sync. #5

Merged
merged 1 commit into from
Dec 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,11 @@ function ($app) {
$app->extend(
'uitpas_command_bus_out',
function (CommandBusInterface $commandBus, Application $app) {
// @todo Subscribe command handlers here.
$uitpasSync = isset($app['config']['uitpas_sync']) ? (bool) $app['config']['uitpas_sync'] : true;
if ($uitpasSync) {
$commandBus->subscribe($app['uitpas_sync_command_handler']);
}

$commandBus->subscribe($app['uitpas_sync_command_handler']);
$commandBus->subscribe($app['uitpas_aggregate_command_handler']);

return $commandBus;
Expand Down
1 change: 1 addition & 0 deletions config.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jwt:
file: public.pem
validation:
iss: http://culudb-jwt-provider.dev
uitpas_sync: true # Optional, defaults to true if not defined