File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
src/Ubiquity/scaffolding/templates Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 6
6
" php" ,
7
7
" framework" ,
8
8
" mvc" ,
9
- " orm" ,
10
9
" tools" ,
10
+ " mailer" ,
11
11
" php-framework"
12
12
],
13
13
"require" : {
Original file line number Diff line number Diff line change
1
+ <?php
2
+ %namespace%
3
+
4
+ %uses%
5
+
6
+ /**
7
+ * Mailer %classname%
8
+ **/
9
+ class %classname% extends %extendsOrImplements% {
10
+
11
+ /**
12
+ *
13
+ * {@inheritdoc}
14
+ * @see \Ubiquity\mailer\AbstractMail::bodyText()
15
+ */
16
+ public function bodyText() {
17
+ return ' Message text' ;
18
+ }
19
+
20
+ public function __construct() {
21
+ parent::__construct();
22
+ $this -> subject = ' Message title' ;
23
+ $this -> from (MailerManager::loadConfig()[' from' ]??' from@organization' );
24
+ //$this -> to ($to );
25
+ }
26
+
27
+ /**
28
+ *
29
+ * { @inheritdoc}
30
+ * @see \Ubiquity\mailer\AbstractMail::body()
31
+ */
32
+ public function body() {
33
+ return ' <h1>Message body</h1>' ;
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments