From 0115405d6f492920f7be15db1db7769466de3387 Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Mon, 10 Oct 2022 15:39:14 +0200 Subject: [PATCH 1/2] version bump --- box.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/box.json b/box.json index 9ae0030..4fa3c9e 100644 --- a/box.json +++ b/box.json @@ -1,7 +1,7 @@ { "name":"ColdBox i18n and Localization", "author":"Ortus Solutions ", - "version":"3.0.0", + "version":"3.1.0", "location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbi18n/@build.version@/cbi18n-@build.version@.zip", "slug":"cbi18n", "type":"modules", @@ -25,7 +25,7 @@ "Jon Clausen ", "Wil de Bruin " ], - "devDependencies":{ + "devDependencies":{ "commandbox-cfformat":"*", "commandbox-docbox":"*", "commandbox-dotenv":"*", From 0f7617be01ab951a8abdf0c234076c3d95d32587 Mon Sep 17 00:00:00 2001 From: Luis Majano Date: Tue, 15 Nov 2022 15:21:13 +0100 Subject: [PATCH 2/2] * New ColdBox 7 delegate: `Resourceful@cbi18n` --- changelog.md | 8 ++++++++ models/delegates/Resourceful.cfc | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 models/delegates/Resourceful.cfc diff --git a/changelog.md b/changelog.md index 1f59401..152440d 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ---- +## [3.0.0] => 2022-NOV-15 + +### Added + +* New ColdBox 7 delegate: `Resourceful@cbi18n` + +---- + ## [3.0.0] => 2022-OCT-10 ### Added diff --git a/models/delegates/Resourceful.cfc b/models/delegates/Resourceful.cfc new file mode 100644 index 0000000..ed44291 --- /dev/null +++ b/models/delegates/Resourceful.cfc @@ -0,0 +1,15 @@ +/** + * Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp + * www.ortussolutions.com + * --- + * This delegate adds resource capabilities to models + */ +component singleton { + + // Delegations + property + name ="resourceService" + inject ="resourceService@cbi18n" + delegate="getResource"; + +}