mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[Documentation][CatalogPromotion] Adjust docs after removing getType method
This commit is contained in:
parent
2b9dfcca4a
commit
ae22bff905
2 changed files with 2 additions and 12 deletions
|
|
@ -23,7 +23,7 @@ We should start from creating a calculator that will return a proper price for g
|
|||
|
||||
App\Calculator\FixedPriceCalculator:
|
||||
tags:
|
||||
- { name: 'sylius.catalog_promotion.price_calculator' }
|
||||
- { name: 'sylius.catalog_promotion.price_calculator', type: 'fixed_price' }
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
@ -48,11 +48,6 @@ And the code for the calculator itself:
|
|||
{
|
||||
public const TYPE = 'fixed_price';
|
||||
|
||||
public static function getType(): string
|
||||
{
|
||||
return self::TYPE;
|
||||
}
|
||||
|
||||
public function supports(BaseCatalogPromotionActionInterface $action): bool
|
||||
{
|
||||
return $action->getType() === self::TYPE;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ We should start from creating a provider that will return for us all of eligible
|
|||
arguments:
|
||||
- '@sylius.repository.product_variant'
|
||||
tags:
|
||||
- { name: 'sylius.catalog_promotion.variants_provider' }
|
||||
- { name: 'sylius.catalog_promotion.variants_provider', type: 'by_phrase' }
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
@ -55,11 +55,6 @@ And the code for the provider itself:
|
|||
$this->productVariantRepository = $productVariantRepository;
|
||||
}
|
||||
|
||||
public static function getType(): string
|
||||
{
|
||||
return self::TYPE;
|
||||
}
|
||||
|
||||
public function supports(CatalogPromotionScopeInterface $catalogPromotionScopeType): bool
|
||||
{
|
||||
return $catalogPromotionScopeType->getType() === self::TYPE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue