All notable changes to this project will be documented in this file.
- Fixed: compatibility issues with symfony 7 and contao 5.4 (#85)
- Added: more options to DcaFields
- Changed:
dca()->getDcaFields()
moveGetDcaFieldsOptions
constructor call to method body. - Added: Static array and class utils within a new namespace for static utilities.
(
StaticUtil\StaticArrayUtil
andStaticUtil\StaticClassUtil
) - Added:
StaticUtil\SUtils
with::array()
and::class()
to locate static array- and class-utilities. - Added:
dca()->executeCallback(...)
to ease execution of callback-arrays and closures. - Added:
FormatterUtil
($utils->formatter()
) withformatter()->formatDcaFieldValue(...)
as a successor to Utils v2's FormUtil::prepareSpecialValueForOutput(). - Deprecated:
ArrayUtil::insertBeforeKey
in favour ofSUtils::array()->insertBeforeKey
. - Deprecated:
ArrayUtil::insertAfterKey
in favour ofSUtils::array()->insertAfterKey
. - Deprecated:
ArrayUtil::removeValue
in favour ofSUtils::array()->removeValue
. - Deprecated:
ClassUtil::classImplementsTrait
in favour ofSUtils::class()->hasTrait
.
- Changed:
UrlUtil::addQueryStringParameterToUrl()
andUrlUtil::removeQueryStringParameterToUrl()
may now take multiple query parameters as array to add or remove respectively. - Fixed: CreateWhereForSerializedBlobResult::createInlineOrWhere() return invalid query (#79)
- Deprecated:
StringUtil::removeLeadingString()
andStringUtil::removeTrailingString()
- Fixed: exception
- Added: DateAddedField (#74)
This version is a complete reworked version of utils bundle. The goal was to have a non-inversive bundle of useful helpers for contao. This version will no longer add asset to your installation, do not dispatch curious caching events or similar.
The main changes are:
- All classic util classes and aliases are removed. Only the ones accessible via the
Utils
service are available. - All deprecated services and functions are removed.
- Nearly all twig filters were dropped.
- No more bundled assets. You can install the asset component still as yarn dependency.
More specific changes, but not limited to:
- Changed: bundle class name is now
HeimrichHannotUtilsBundle
- Changed: DcaUtil::getDcaFields() array options now throw error if not of type array
- Changed: RoutingUtil::generateBackendRoute() route argument moved to options array
- Removed: ContainerUtil::isBundleActive()
- Removed: UrlUtil::removeQueryStringParameterToUrl()
- Removed: a lot of not used dependencies
Changes since last beta version:
- Removed: AbstractServiceSubscriber (potentially breaking!)
- Fixed: compatibility with symfony 6 and contao 5.3
- Fixed: insert tag parsing
Merge changes from 2.234.1:
- Fixed: missing title in entity finder block_module output
Merge changes from 2.234.0:
- Added: find*ByInserttag methods to EntityFinderHelper
- Changed: find articles by inserttags for html modules and content element in EntityFinder command