Releases: smartbooster/core-bundle
Releases · smartbooster/core-bundle
v1.4.0
Added
PhpFormatter
common date formatting to use on DateTime::format https://www.php.net/manual/en/datetime.format.php (@mathieu-ducrot)
v1.3.0
Added
ISO8601Formatter
for common date formatting (@mathieu-ducrot)ProcessMonitor
Add functions to manage process log and print them out to the console (@mathieu-ducrot)
Changed
ProcessMonitor::start
Add boolean flush param to better manage when the process should be flushed (@mathieu-ducrot)ProcessMonitor::end
Handle passing process param as null (@mathieu-ducrot)
v1.2.4
The process duration value is now calculated in milliseconds instead of seconds.
So update your databases values accordingly when updating to this version.
We added new function to the interface to get the value in seconds if you don't care about milliseconds.
Fixed
ProcessMonitor::end
duration calculation in milliseconds instead of seconds. (@mathieu-ducrot)
Added
ProcessInterface::getDurationSeconds
+ProcessInterface::getDurationSecondsAsString
to still manage process duration in seconds. (@mathieu-ducrot)DateUtils::millisecondsToString
that adds up the number of milliseconds to the string, only if the value is less than a minute. (@mathieu-ducrot)
v1.2.3
Added
StringUtils::upperAccentuatedCharacter
+ tests (@lfortunier)StringUtils::lowerAccentuatedCharacter
+ tests (@lfortunier)StringUtils::formatLastName
+ tests (@lfortunier)StringUtils::formatFirstName
+ tests (@lfortunier)StringUtils::formatSpaceBetween
+ tests (@lfortunier)
v1.2.2
Added
- Add mapping comment on EntityTrait to be compatible with doctrine annotations type (@mathieu-ducrot)
ApiCallMonitor
to manage start/end ApiCallInterface (@mathieu-ducrot)ProcessInterface::addExceptionTraceData
function to store the exception trace (@mathieu-ducrot)
Fixed
ProcessTrait::addLog
Switch adding log at the end instead of the beginning (@mathieu-ducrot)
v1.2.1
Fix
ArrayUtils::checkIssetKeys
: Modify method with not strict comparaison (@lfortunier)
v1.2.0
Added
- Common Entity Interface and Trait such as the
ProcessInterface
which we will use to monitor cron, api and file generation. (@mathieu-ducrot) ProcessMonitor
to centralize process code management (@mathieu-ducrot)CommandPoolHelper
service to fetch data about the project symfony commands (like getting all cron choices) (@mathieu-ducrot)DateUtils::secondsToString
helper to convert seconds into a small summary string (@mathieu-ducrot)IniOverrideConfig::initDefaultTimezoneForCli
helper to properly set the timezone when using date with PHP CLI on CleverCloud (@mathieu-ducrot)ApiCallInterface
and trait to ease monitoring API calls (@mathieu-ducrot)
Fixed
RegexUtils::PHONE_PATTERN
remove wrong extra digit needed on foreign number (@mathieu-ducrot)
v1.1.0
Added
- new
ArrayUtils
methods :checkIssetKeys
,trimExplode
,removeEmpty
,filterByPattern
,flatToMap
(@lfortunier) - new
MathUtils
methods :calculateAverage
,calculateDivision
(@lfortunier) - new
DateUtils
methods :getFirstDayYearFromDateTime
,getLastDayMonthFromDateTime
,getMonthsBetweenDateTimes
,getDateTimeMonth
,getDateTimeYear
,getNbOfWorkingDaysBetweenDateTimes
,getDateTimeFromMonthYear
,getNbDayBetweenDateTimes
,isNighttime
,getLastDayPreviousMonthFromDateTime
,getFirstDayNextMonthFromDateTime
,getFirstDayMonth
,getNextBirthdayDateTime
,getFormattedLongMonth
,getFormattedLongMonthYears
,getFormattedShortMonthYears
,addDays
,subDays
,addMonths
,subMonths
,addYears
,subYears
(@lfortunier)
v1.0.5
Addedd
StringUtils::getEntityRoutePrefix
Add optional $context param to be more generic and being used on other domain/context. (@mathieu-ducrot)
v1.0.4
Added
MathUtils::convertCentsToEuro
: Convert cents to euro (@lfortunier)