Skip to content

Releases: smartbooster/core-bundle

v1.14.2

06 Feb 14:28
bddba3e
Compare
Choose a tag to compare

Fixed

  • GroupConcat::parse Fix access to the value of the $lexer->lookahead if it's an array or a Token object (@mathieu-ducrot)

v1.14.1

30 Jan 14:19
41b1f24
Compare
Choose a tag to compare

Fixed

  • StringUtils::getEntitySnakeName fixed return value on folder named with full capital letter by doing the snake conversion first then the replace (@mathieu-ducrot)

v1.14.0

25 Nov 11:47
25ecf76
Compare
Choose a tag to compare

Added

  • ArrayUtils::toIndexedArray + tests Delete keys of array and multidimensional array (@lfortunier)

Fixed

  • RequestUtils::getContextFromHost add host ending with '.localhost' fallback (@mathieu-ducrot)

v1.13.1

24 Sep 15:23
4758545
Compare
Choose a tag to compare

Fixed

  • HistoryDoctrineListener::handleHistory set deleted collection only to the owner (@lfortunier)

Added

  • HistorizableInterface::getHistoryDiffFieldsToSkip be able to skip doctrine collections fields in HistoryDoctrineListener::handleHistory (@lfortunier)

v1.13.0

24 Sep 11:12
4801ab7
Compare
Choose a tag to compare

Added

  • EntityCleanupCommand to delete cron, clean api calls or other entity easily through the bundle configuration entity_cleanup_command_configs (@mathieu-ducrot)

Changed

  • UpdatableInterface::getUpdatedAt and UpdatableInterface::setUpdatedAt handle nullable datetime (@mathieu-ducrot)

v1.12.0

23 Sep 10:05
7bf47c9
Compare
Choose a tag to compare

Added

v1.11.0

19 Sep 16:47
46c79bb
Compare
Choose a tag to compare

Added

  • CreatableTrait Trait & interface with creation date (@lfortunier)
  • MonthYearTrait Trait & interface with numeric representation of a month and his numeric year. Useful for statistics purposes. (@lfortunier)

Changed

  • README.md update : Add missing nelmio security settings configuration (@lfortunier)

Fixed

  • HistoryLogger add missing STATUS_PROPERTY check on log update skip (@mathieu-ducrot)
  • NameableInterface::setName add missing null case as it is mentioned on the trait (@mathieu-ducrot)
  • NameableTrait::name property scope set as protected (@mathieu-ducrot)
  • PersonNameableTrait::getInitial use mb_substr for string with first accentuated character (@mathieu-ducrot)

v1.10.0

28 Aug 09:57
abb9925
Compare
Choose a tag to compare

Added

  • ArrayUtils::hasDuplicateValue + tests (@lfortunier)
  • StringUtils::fillPrefix Fill a prefix to value until specified length + tests (@lfortunier)
  • DateUtils::addWorkingDays to calculate a date based on working days + tests (@lfortunier)
  • HistorizableInterface::getHistoryDiffFieldsToSkip to manage fields to skip logging on history (@mathieu-ducrot)

Changed

  • README.md update : add scripts to the list of scripts that can be executed in script-src Nelmio Security recommendations config. (@lfortunier)
  • README.md update : Add missing sentry settings configuration (@lfortunier)
  • RequestUtils::getContextFromHost Add .sso subdomain for proper detection on localhost (@mathieu-ducrot)
  • HistoryLogger::log skip history log if it's an update without data (ex: diff detected in EntityChangeSet but the targetted fields are actually skip from getHistoryDiffFieldsToSkip @mathieu-ducrot)

v1.9.0

11 Jul 09:15
2b94b04
Compare
Choose a tag to compare

Added

  • FileableInterface, ImageableInterface, PdfInterface and their trait to demonstrate how to properly configure VichUploader annotations/attributes (@mathieu-ducrot)
  • EmbeddedFile to deal with multiple files on the same entity. To use in combination with a OneToOne relation and ORM\Embedded (@mathieu-ducrot)
  • UuidInterface and trait to for uuid management (@mathieu-ducrot)
  • ParentFileTransformer to used on form with entity implementing the FileableInterface to auto set the parent relation (@mathieu-ducrot)
  • MimeTypesUtils helper for constraints mimeTypes check (@mathieu-ducrot)

Fixed

v1.8.0

25 Jun 08:59
f3d9098
Compare
Choose a tag to compare

Add Entity json History feature (@mathieu-ducrot)

Added

  • HistoryInterface(s) and trait to add json history on entity
  • UserProfileInterface to add on User entity that can be mentioned on history rows
  • MailableInterface to identify entities which have email sending feature
  • HistoryLogger and dedicated listeners to call him when doctrine detect changes during prePersist and preUpdate
  • HistoryLogger new CRON_ID_PROPERTY and API_ID_PROPERTY to link the history row with his corresponding monitoring entity id
  • RequestUtils to ease domain context detection

Changed

  • MonitoringApiControllerTrait::startApiCall add optionnal $flush param in case we directly want the id to be logged in an entity history
  • ApiCallMonitor::start We now start the process after parsing the request to ensure all ApiCall properties that are non-nullable are set before flushing it
  • ApiCallTrait statusCode is now nullable for ongoing ApiCall