Extension points
phil/money-bundleWhat an application configures or extends. The amounts and currencies are phil/money's.
Configuration
| Option | What it extends |
|---|---|
currencies | The currencies accepted, in the order a choice offers them; empty for every currency the CLDR data knows |
default_currency | The currency an empty amount starts in |
doctrine_mapping | Whether Phil\Money\Money is mapped as an ORM embeddable; false for a mapping of the application's own |
See Configuration.
Forms and validation
| Point | How |
|---|---|
| The currency of one field | The currency or currencies option of MoneyType — see Forms |
| Its error | The invalid_message option |
| The currencies and amounts accepted | AcceptedCurrency and MoneyRange with their min, max and messages — see Validation |
| The messages in other languages | The validators domain: the bundle ships English and French, an application adds or overrides others |
| More than the field does | A form type extension of the application's on MoneyType |