Skip to content

Commit 06ecaa4

Browse files
committed
Migrating BFW 3.0.0-RC10
Migrating loading and installation scripts
1 parent 941a96b commit 06ecaa4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

bfwmailer_init_db.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
33
* Initialisation script for the module database
4-
* @author Alexandre Moittié <contact@alexandre-moittie.com>
4+
* @author Aetiom <aetiom@protonmail.com>
55
* @package bfw-mailer
6-
* @version 1.0
6+
* @version 1.1
77
*/
88

99
//Default: Run by BFW install module script
@@ -36,7 +36,7 @@
3636
echo $shiftingActions.' Verifying bfw-sql configuration... ';
3737

3838
try {
39-
$bfwsql = $app->getModule('bfw-sql');
39+
$bfwsql = $app->getModuleList()->getModuleByName('bfw-sql');
4040
} catch (\Exception $e) {
4141
// Display error and tip message if the bfw-sql module is missing
4242
echo "\033[1;31m Fail !\n"

bfwmailer_process_q.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
33
* Script for sending email from the BFW Mailer queue (outbox)
4-
* @author Alexandre Moittié <contact@alexandre-moittie.com>
4+
* @author Aetiom <aetiom@protonmail.com>
55
* @package bfw-mailer
6-
* @version 1.0
6+
* @version 1.1
77
*/
88

99
/*
@@ -12,7 +12,7 @@
1212
*/
1313

1414
// Retrieve mailer module from BFW Application
15-
$mailer = \BFW\Application::getInstance()->getModule('bfw-mailer')->mailer;
15+
$mailer = \BFW\Application::getInstance()->getModuleList()->getModuleByName('bfw-mailer')->mailer;
1616

1717
// Processing mail queue by dequeuing, sending and archiving ONLY A SINGLE EMAIL from outbox
1818
$mailer->process_queue();

src/runner.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
33
* Initialisation script for the module
4-
* @author Alexandre Moittié <contact@alexandre-moittie.com>
4+
* @author Aetiom <aetiom@protonmail.com>
55
* @package bfw-mailer
6-
* @version 1.0
6+
* @version 1.1
77
*/
88

99
$config = $this->getConfig();

0 commit comments

Comments
 (0)