File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ component accessors="true" {
17
17
// DI
18
18
property name = " wirebox" inject = " wirebox" ;
19
19
20
+ property name = " renderer" inject = " coldbox:renderer" ;
21
+
20
22
/**
21
23
* The config struct representing the mail payload which is sent to the configured protocol in the mail service
22
24
*/
@@ -457,9 +459,7 @@ component accessors="true" {
457
459
458
460
// Do we have a layout?
459
461
if ( ! isNull ( arguments .layout ) && len ( arguments .layout ) ) {
460
- variables .config .body = variables .wirebox
461
- .getInstance ( " Renderer@coldbox" )
462
- .layout (
462
+ variables .config .body = variables .renderer .layout (
463
463
layout : arguments .layout ,
464
464
module : arguments .layoutModule ,
465
465
view : arguments .view ,
@@ -469,9 +469,7 @@ component accessors="true" {
469
469
}
470
470
// Else, plain view rendering
471
471
else {
472
- variables .config .body = variables .wirebox
473
- .getInstance ( " Renderer@coldbox" )
474
- .view (
472
+ variables .config .body = variables .renderer .view (
475
473
view : arguments .view ,
476
474
args : arguments .args ,
477
475
module : arguments .module
You can’t perform that action at this time.
0 commit comments