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