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.

For more detailed information go to Sylius API CurrencyInterface.

Service Interfaces

CurrenciesAwareInterface

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

Note

For more detailed information go to Sylius API CurrenciesAwareInterface.

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

Note

For more detailed information go to Sylius API CurrencyContextInterface.

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.

Note

For more detailed information go to Sylius API CurrencyConverterInterface.

CurrencyProviderInterface

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

Note

For more detailed information go to Sylius API CurrencyProviderInterface.