Skip to content

Releases: smartbooster/core-bundle

v1.4.0

06 May 12:17
62326d0
Compare
Choose a tag to compare

Added

v1.3.0

29 Apr 10:54
098ed9f
Compare
Choose a tag to compare

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

22 Apr 14:18
f65f060
Compare
Choose a tag to compare

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

22 Apr 08:25
b8f97c9
Compare
Choose a tag to compare

Added

  • StringUtils::upperAccentuatedCharacter + tests (@lfortunier)
  • StringUtils::lowerAccentuatedCharacter + tests (@lfortunier)
  • StringUtils::formatLastName + tests (@lfortunier)
  • StringUtils::formatFirstName + tests (@lfortunier)
  • StringUtils::formatSpaceBetween + tests (@lfortunier)

v1.2.2

02 Apr 09:18
67a4db5
Compare
Choose a tag to compare

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

27 Mar 15:13
7ea084b
Compare
Choose a tag to compare

Fix

  • ArrayUtils::checkIssetKeys : Modify method with not strict comparaison (@lfortunier)

v1.2.0

27 Mar 14:04
b16383c
Compare
Choose a tag to compare

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

25 Mar 13:39
1c772b9
Compare
Choose a tag to compare

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

15 Mar 13:59
f69185b
Compare
Choose a tag to compare

Addedd

  • StringUtils::getEntityRoutePrefix Add optional $context param to be more generic and being used on other domain/context. (@mathieu-ducrot)

v1.0.4

27 Feb 14:58
6714cfb
Compare
Choose a tag to compare

Added

  • MathUtils::convertCentsToEuro : Convert cents to euro (@lfortunier)