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

Commit

Permalink
III-1619: Bootstrap price description parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bramcordie committed Dec 14, 2016
1 parent 9745191 commit ff8b9a6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
15 changes: 14 additions & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
use Broadway\Saga\MultipleSagaManager;
use Broadway\Saga\State\MongoDBRepository;
use Broadway\Serializer\SimpleInterfaceSerializer;
use CommerceGuys\Intl\Currency\CurrencyRepository;
use CommerceGuys\Intl\NumberFormat\NumberFormatRepository;
use CultuurNet\BroadwayAMQP\DomainMessageJSONDeserializer;
use CultuurNet\BroadwayAMQP\EventBusForwardingConsumerFactory;
use CultuurNet\Deserializer\SimpleDeserializerLocator;
use CultuurNet\SymfonySecurityJwt\Authentication\JwtUserToken;
use CultuurNet\UDB3\Cdb\CdbId\EventCdbIdExtractor;
use CultuurNet\UDB3\Cdb\ExternalId\ArrayMappingService;
use CultuurNet\UDB3\Cdb\PriceDescriptionParser;
use CultuurNet\UDB3\EventSourcing\ExecutionContextMetadataEnricher;
use CultuurNet\UDB3\LabelCollection;
use CultuurNet\UDB3\SimpleEventBus;
Expand Down Expand Up @@ -476,12 +479,22 @@ function (Application $app) {
}
);

$app['price_description_parser'] = $app->share(
function () {
return new PriceDescriptionParser(
new NumberFormatRepository(),
new CurrencyRepository()
);
}
);

$app['uitpas_event_saga'] = $app->share(
function (Application $app) {
return new UiTPASEventSaga(
$app['uitpas_command_bus'],
$app['uitpas_organizer_spec'],
$app['event_cdbid_extractor']
$app['event_cdbid_extractor'],
$app['price_description_parser']
);
}
);
Expand Down
22 changes: 11 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff8b9a6

Please sign in to comment.