All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Support for many tags (filter dictionaries)
- The registry can now be autowired
- Possibility to use invokable service with callable dictionary (it was possible before but a little bit more complex)
- Category is now called tag #34
- Dump command works with category dictionaries
- DictionaryValidator now add violation to context for dictionaries containing (int) 0 value. It wasn't the case before
- Add new method
getOriginalDictionaryon TraceableDictionary - New feature: if you use the
CategoryDictionaryInterfaceyou'll be able to sort dictionaries by using the registry. - The
RegistryDictionaryhas now a new filter method.
- Allow to use the validator inside another annotation
- Upgrade
php-cs-fixerpackage from^1.11to^2.11&& update.php_csrules - PHP 7.1 is now the minimum version requirement
- Add composer package in Dockerfile
- Add support for arguments for the callable dictionary
- Makes command output more readable than before:
- Nicer tables
- Avoid too long tables by showing only 15 keys
- Dictionary validator now accept arrays if you specify "multiple" option at
true
- Dump dictionary command compatibility with Symfony 3.3
knp_dictionary.registryservice declaration set public to true (Symfony 4 fix)
- Improve the format when call dump command
- Add
knp:dictionary:dumpcommand for dictionary listing and preview - Add auto-registration of
Dictionaryimplementations as actual dictionary for users of Sf >= 3.3
- Documentation formattage is now great again
- Fix template management for Symfony flex
- Add tag
knp_dictionary.factoryfor DI services so you can add dictionary factories - Add tag
knp_dictionary.dictionaryfor DI services so you can add dictionary as service - Add
knp_dictionary.data_collector.dictionary_data_collectorservice so you can trace what dictionnary is available - New factory interface
Knp\DictionaryBundle\Dictionary\Factory - New interface
Knp\DictionaryBundle\Dictionary - This changelog is also new :)
- Some namespace changes for
SimpleDictionaryandValueTransformer - Add
addmethod onDictionaryRegistry - New view in the web profiler of Symfony
serviceandmethodnodes from configuration: dictionnaries are now loaded automatically by factories registered as it with the new tag