| @@ 41-59 (lines=19) @@ | ||
| 38 | * @param RepositoryInterface $writeRepository |
|
| 39 | * @param LabelServiceInterface $labelService |
|
| 40 | */ |
|
| 41 | public function __construct( |
|
| 42 | EventServiceInterface $eventService, |
|
| 43 | CommandBusInterface $commandBus, |
|
| 44 | UuidGeneratorInterface $uuidGenerator, |
|
| 45 | DocumentRepositoryInterface $readRepository, |
|
| 46 | OfferCommandFactoryInterface $commandFactory, |
|
| 47 | RepositoryInterface $writeRepository, |
|
| 48 | LabelServiceInterface $labelService |
|
| 49 | ) { |
|
| 50 | parent::__construct( |
|
| 51 | $commandBus, |
|
| 52 | $uuidGenerator, |
|
| 53 | $readRepository, |
|
| 54 | $commandFactory, |
|
| 55 | $labelService |
|
| 56 | ); |
|
| 57 | $this->eventService = $eventService; |
|
| 58 | $this->writeRepository = $writeRepository; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * {@inheritdoc} |
|
| @@ 37-54 (lines=18) @@ | ||
| 34 | * @param RepositoryInterface $writeRepository |
|
| 35 | * @param LabelServiceInterface $labelService |
|
| 36 | */ |
|
| 37 | public function __construct( |
|
| 38 | CommandBusInterface $commandBus, |
|
| 39 | UuidGeneratorInterface $uuidGenerator, |
|
| 40 | DocumentRepositoryInterface $readRepository, |
|
| 41 | OfferCommandFactoryInterface $commandFactory, |
|
| 42 | RepositoryInterface $writeRepository, |
|
| 43 | LabelServiceInterface $labelService |
|
| 44 | ) { |
|
| 45 | parent::__construct( |
|
| 46 | $commandBus, |
|
| 47 | $uuidGenerator, |
|
| 48 | $readRepository, |
|
| 49 | $commandFactory, |
|
| 50 | $labelService |
|
| 51 | ); |
|
| 52 | ||
| 53 | $this->writeRepository = $writeRepository; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * {@inheritdoc} |
|