Interfaces¶

Danger

We’re sorry but this documentation section is outdated. Please have that in mind when trying to use it. You can help us making documentation up to date via Sylius Github. Thank you!

Model Interfaces¶

CurrencyInterface¶

This interface provides you with basic management of a currency’s code, name, exchange rate and whether the currency should be enabled or not.

Note

This interface extends CodeAwareInterface and TimestampableInterface.

Service Interfaces¶

CurrenciesAwareInterface¶

Any container used to store, and manage currencies should implement this interface.

CurrencyContextInterface¶

This interface should be implemented by a service used for managing the currency name. It also contains the default storage key:

Related constant

Storage key

STORAGE_KEY

_sylius_currency

CurrencyConverterInterface¶

This interface should be implemented by any service used to convert the amount of money from one currency to another, according to their exchange rates.

CurrencyProviderInterface¶

This interface allows you to implement one fast service which gets all available currencies from any container you would like.