Skip to content

Commit 12ed83a

Browse files
committed
Merge branch 'development' of github.com:coldbox-modules/cbmailservices into development
2 parents 5069932 + 286bd22 commit 12ed83a

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
forgeboxAPIKey: ${{ secrets.FORGEBOX_TOKEN }}
149149

150150
- name: Download build artifacts
151-
uses: actions/download-artifact@v2
151+
uses: actions/download-artifact@v4
152152
with:
153153
name: ${{ env.MODULE_ID }}
154154
path: .tmp

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
curl http://127.0.0.1:60299
8585
8686
# Startup Fake SMTP
87-
- uses: isbang/compose-action@v1.0.0
87+
- uses: hoverkraft-tech/compose-action@v2
8888
with:
8989
compose-file: './test-harness/tests/resources/docker-compose.yml'
9090

models/Mail.cfc

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ component accessors="true" {
1717
// DI
1818
property name="wirebox" inject="wirebox";
1919

20+
property name="renderer" inject="coldbox:renderer";
21+
2022
/**
2123
* The config struct representing the mail payload which is sent to the configured protocol in the mail service
2224
*/
@@ -457,25 +459,21 @@ component accessors="true" {
457459

458460
// Do we have a layout?
459461
if ( !isNull( arguments.layout ) && len( arguments.layout ) ) {
460-
variables.config.body = variables.wirebox
461-
.getInstance( "Renderer@coldbox" )
462-
.layout(
463-
layout : arguments.layout,
464-
module : arguments.layoutModule,
465-
view : arguments.view,
466-
args : arguments.args,
467-
viewModule: arguments.module
468-
);
462+
variables.config.body = variables.renderer.layout(
463+
layout : arguments.layout,
464+
module : arguments.layoutModule,
465+
view : arguments.view,
466+
args : arguments.args,
467+
viewModule: arguments.module
468+
);
469469
}
470470
// Else, plain view rendering
471471
else {
472-
variables.config.body = variables.wirebox
473-
.getInstance( "Renderer@coldbox" )
474-
.view(
475-
view : arguments.view,
476-
args : arguments.args,
477-
module: arguments.module
478-
);
472+
variables.config.body = variables.renderer.view(
473+
view : arguments.view,
474+
args : arguments.args,
475+
module: arguments.module
476+
);
479477
}
480478

481479
return this;

0 commit comments

Comments
 (0)