Releases: roukmoute/hashids-bundle
Releases · roukmoute/hashids-bundle
v3.1.0: Support dependencies for Symfony 6
v3.0.0
- The internal functioning has been completely recoded.
- PHP 8 support
- Move internal Container configuration from XML to PHP
- Removed the setMinHashLength() method
- Removed the encodeWithCustomHashLength() method
- New "auto_convert" option
- The variable must be prefixed with
_hash_
in order to be decoded
Add Symfony 5 compatibility
v2.3.1 Add Symfony 5 compatibility
v2.3.0: Switch from \twig_extension to AbstractExtension (#11)
Support Twig 3.x
Pass the root node name to TreeBuilder
Fixed configuration loading, deprecated since Symfony 4.2. (#9) See: https://symfony.com/doc/4.2/components/config/definition.html#defining-a-hierarchy-of-configuration-values-using-the-treebuilder
getIdentifier() method must be of the type string
Fixed getIdentifier() must be of the type string (#7) When `$configuration->getName()` is `null`, which is possible with the default `@ParamConverter` from `FrameworkExtraBundle` an exception will be thrown because `getIdentifier` requires a string as third param. Using `?string $name` is not allowed since the bundle should be compatible with php >= 7.1 `private function getIdentifier(Request $request, $options, string $name): string`
Allow autowiring
Use Hashids\HashidsInterface as alias to hashids service in order to allow autowiring.
v2.0.0
This release provides several improvements and fixes, including:
- PHP 7.1+ requirement
- Update all dependencies (remove all doctrine dependencies)
- DoctrineParamConverter is not used anymore
- This bundle only converts hashid into an id
- Replace autowire with passthrough.
This new parameter which allows to continue with the next param converters available.
Make `hashids` service public
Services are going to be private by default in Symfony 4.0.
Loosened symfony/http-kernel version restriction
v1.5.0 Loosened symfony/http--kernel version restriction (#4)