Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-09-03 04:51:18 +0300
committerGitHub <noreply@github.com>2020-09-03 04:51:18 +0300
commit3565da78bff718f201247fc2f692c0be29220fde (patch)
treee8268373b284c293c307935a8bfa20d5cd920b48 /plugins/ScheduledReports
parent21cafb0533d07acbe0a574e23bd972b20d72aa90 (diff)
Updates php-di to 6.2.1 (#16311)
Diffstat (limited to 'plugins/ScheduledReports')
-rw-r--r--plugins/ScheduledReports/config/config.php6
-rw-r--r--plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/AttachedFileReportEmailGeneratorTest.php4
-rw-r--r--plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/HtmlReportEmailGeneratorTest.php4
-rw-r--r--plugins/ScheduledReports/tests/Integration/ReportEmailGeneratorTest.php4
4 files changed, 9 insertions, 9 deletions
diff --git a/plugins/ScheduledReports/config/config.php b/plugins/ScheduledReports/config/config.php
index 5a2215e3b9..9bdb5ddfbe 100644
--- a/plugins/ScheduledReports/config/config.php
+++ b/plugins/ScheduledReports/config/config.php
@@ -12,13 +12,13 @@ use Piwik\Plugins\ScheduledReports\ReportEmailGenerator\AttachedFileReportEmailG
use Piwik\Plugins\ScheduledReports\ReportEmailGenerator\HtmlReportEmailGenerator;
return [
- ReportEmailGenerator::class . '.pdf' => DI\object(AttachedFileReportEmailGenerator::class)
+ ReportEmailGenerator::class . '.pdf' => DI\autowire(AttachedFileReportEmailGenerator::class)
->constructorParameter('attachedFileExtension', '.pdf')
->constructorParameter('attachedFileMimeType', 'application/pdf'),
- ReportEmailGenerator::class . '.csv' => DI\object(AttachedFileReportEmailGenerator::class)
+ ReportEmailGenerator::class . '.csv' => DI\autowire(AttachedFileReportEmailGenerator::class)
->constructorParameter('attachedFileExtension', '.csv')
->constructorParameter('attachedFileMimeType', 'application/csv'),
- ReportEmailGenerator::class . '.html' => DI\object(HtmlReportEmailGenerator::class),
+ ReportEmailGenerator::class . '.html' => DI\create(HtmlReportEmailGenerator::class),
];
diff --git a/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/AttachedFileReportEmailGeneratorTest.php b/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/AttachedFileReportEmailGeneratorTest.php
index 623fa75eb8..38653743bf 100644
--- a/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/AttachedFileReportEmailGeneratorTest.php
+++ b/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/AttachedFileReportEmailGeneratorTest.php
@@ -157,10 +157,10 @@ Content-Transfer-Encoding: quoted-printable
{
return [
'observers.global' => \DI\add([
- ['Test.Mail.send', function (PHPMailer $mail) {
+ ['Test.Mail.send', \DI\value(function (PHPMailer $mail) {
$this->mail = $mail;
$this->mail->preSend();
- }],
+ })],
]),
];
}
diff --git a/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/HtmlReportEmailGeneratorTest.php b/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/HtmlReportEmailGeneratorTest.php
index 55c44383a3..b212ec9082 100644
--- a/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/HtmlReportEmailGeneratorTest.php
+++ b/plugins/ScheduledReports/tests/Integration/ReportEmailGenerator/HtmlReportEmailGeneratorTest.php
@@ -63,10 +63,10 @@ class HtmlReportEmailGeneratorTest extends IntegrationTestCase
{
return [
'observers.global' => \DI\add([
- ['Test.Mail.send', function (PHPMailer $mail) {
+ ['Test.Mail.send', \DI\value(function (PHPMailer $mail) {
$this->mail = $mail;
$this->mail->preSend();
- }],
+ })],
]),
];
}
diff --git a/plugins/ScheduledReports/tests/Integration/ReportEmailGeneratorTest.php b/plugins/ScheduledReports/tests/Integration/ReportEmailGeneratorTest.php
index dad7af3b85..9250be3e7d 100644
--- a/plugins/ScheduledReports/tests/Integration/ReportEmailGeneratorTest.php
+++ b/plugins/ScheduledReports/tests/Integration/ReportEmailGeneratorTest.php
@@ -129,9 +129,9 @@ class ReportEmailGeneratorTest extends IntegrationTestCase
{
return [
'observers.global' => \DI\add([
- ['Test.Mail.send', function (PHPMailer $mail) {
+ ['Test.Mail.send', \DI\value(function (PHPMailer $mail) {
$this->mail = $mail;
- }],
+ })],
]),
];
}