Skip to content

Commit

Permalink
change constant type name
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Jun 8, 2022
1 parent 0e2120c commit 3a449bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Shop/CreateFromProductAffiliateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __invoke(Request $request): Response

/** @var AffiliateInterface $affiliate */
$affiliate = $this->affiliateFactory->createNew();
$affiliate->setType(AffiliateInterface::TYPE_PROMOTION);
$affiliate->setType(AffiliateInterface::REWARD_TYPE_PROMOTION);
$affiliate->setCustomer($customer);
$affiliate->setProduct($product);

Expand Down
2 changes: 1 addition & 1 deletion src/Entity/AffiliateInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface AffiliateInterface extends
{
public const TOKEN_PARAM_NAME = 'token_value';

public const TYPE_PROMOTION = 'promotion';
public const REWARD_TYPE_PROMOTION = 'promotion';

public function getTokenValue(): ?string;

Expand Down

0 comments on commit 3a449bb

Please sign in to comment.