DictionaryBundle
DictionaryBundle copied to clipboard
Are you often tired to repeat static choices like gender or civility in your apps ?
You will be able to retreive it through the dictionaries collection service: ```php $dictionaries = $container->get(\Knp\DictionaryBundle\Dictionary\Collection::class); $dictionary = $dictionaries['my_dictionary']; ``` Is there a way to inject a dictionary into a...
What about creating a configuration parameter that would allows to wrap the dictionary inside a `Cache` decorator ? The config would looks like: ```yaml dictionaries: my_dictionary: type: key_value content: -...
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version. Release notes Sourced from phpstan/phpstan's releases. 1.10.66 Improvements 🔧 Detect mismatch between readonly/non-readonly class parent (https://github.com/phpstan/phpstan-src/commit/986cbdfb2fd0c3de71b31ac3f212bd499d2131e1), #10789 TypeInferenceTestCase - fix...
Updates the requirements on [friendsofphp/php-cs-fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to permit the latest version. Release notes Sourced from friendsofphp/php-cs-fixer's releases. v3.52.1 15 Keys What's Changed fix: PhpCsFixer\Tokenizer\Tokens::setSize return type by @kubawerlos in PHP-CS-Fixer/PHP-CS-Fixer#7900 fix:...
Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. Release notes Sourced from rector/rector's releases. Released Rector 1.0.3 New Features and Improvements :partying_face: [TypeDeclaration] Add ChildDoctrineRepositoryClassTypeRector (#5695) [TypeDeclaration] No...
Updates the requirements on [phpspec/prophecy](https://github.com/phpspec/prophecy) to permit the latest version. Release notes Sourced from phpspec/prophecy's releases. 1.19.0 Added: Allow sebastian/comparator and sebastian/recursion-context 6 by @Jean85 Full Changelog: https://github.com/phpspec/prophecy/compare/v1.18.0...v1.19.0 Changelog Sourced...
It appears that most interface classes use the Interface suffix. This will be even more relevant if #154 is implemented.
The documentation for defining a custom dictionary is pretty light: https://github.com/KnpLabs/DictionaryBundle#dictionary I've created a class that implements Dictionary, and I've set getKeys() and getValues() to return arrays with keys and...
Updates the requirements on [phpstan/phpstan](https://github.com/phpstan/phpstan) to permit the latest version. Release notes Sourced from phpstan/phpstan's releases. 1.11.6 Bleeding edge 🔪 Precise array shapes for preg_match() for $matches by-ref parameter (#2589),...