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
getOriginalDictionary
on TraceableDictionary - New feature: if you use the
CategoryDictionaryInterface
you'll be able to sort dictionaries by using the registry. - The
RegistryDictionary
has now a new filter method.
- Allow to use the validator inside another annotation
- Upgrade
php-cs-fixer
package from^1.11
to^2.11
&& update.php_cs
rules - 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.registry
service declaration set public to true (Symfony 4 fix)
- Improve the format when call dump command
- Add
knp:dictionary:dump
command for dictionary listing and preview - Add auto-registration of
Dictionary
implementations 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.factory
for DI services so you can add dictionary factories - Add tag
knp_dictionary.dictionary
for DI services so you can add dictionary as service - Add
knp_dictionary.data_collector.dictionary_data_collector
service 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
SimpleDictionary
andValueTransformer
- Add
add
method onDictionaryRegistry
- New view in the web profiler of Symfony
service
andmethod
nodes from configuration: dictionnaries are now loaded automatically by factories registered as it with the new tag