| @@ 51-63 (lines=13) @@ | ||
| 48 | * @param FactoryInterface $addressFactory |
|
| 49 | * @param TokenStorageInterface $tokenStorage |
|
| 50 | */ |
|
| 51 | public function __construct( |
|
| 52 | RepositoryInterface $addressRepository, |
|
| 53 | RepositoryInterface $countryRepository, |
|
| 54 | RepositoryInterface $provinceRepository, |
|
| 55 | FactoryInterface $addressFactory, |
|
| 56 | TokenStorageInterface $tokenStorage |
|
| 57 | ) { |
|
| 58 | $this->addressRepository = $addressRepository; |
|
| 59 | $this->countryRepository = $countryRepository; |
|
| 60 | $this->provinceRepository = $provinceRepository; |
|
| 61 | $this->addressFactory = $addressFactory; |
|
| 62 | $this->tokenStorage = $tokenStorage; |
|
| 63 | } |
|
| 64 | ||
| 65 | public function handle(UpdateAddress $command): void |
|
| 66 | { |
|
| @@ 50-62 (lines=13) @@ | ||
| 47 | * @param FactoryInterface $addressFactory |
|
| 48 | * @param TokenStorageInterface $tokenStorage |
|
| 49 | */ |
|
| 50 | public function __construct( |
|
| 51 | RepositoryInterface $addressRepository, |
|
| 52 | RepositoryInterface $countryRepository, |
|
| 53 | RepositoryInterface $provinceRepository, |
|
| 54 | FactoryInterface $addressFactory, |
|
| 55 | TokenStorageInterface $tokenStorage |
|
| 56 | ) { |
|
| 57 | $this->addressRepository = $addressRepository; |
|
| 58 | $this->countryRepository = $countryRepository; |
|
| 59 | $this->provinceRepository = $provinceRepository; |
|
| 60 | $this->addressFactory = $addressFactory; |
|
| 61 | $this->tokenStorage = $tokenStorage; |
|
| 62 | } |
|
| 63 | ||
| 64 | public function handle(CreateAddress $command): void |
|
| 65 | { |
|