Skip to content

Commit 84c9041

Browse files
committed
Added positive status message for the production mode check
1 parent 1fc6040 commit 84c9041

6 files changed

Lines changed: 17 additions & 3 deletions

File tree

CHANGELOG_de-DE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# 0.1.0
22

33
* Erster Release im Store
4+
5+
# 0.1.1
6+
7+
* Positive Statusnachricht für den Produktivmodus Check hinzugefügt.

CHANGELOG_en-GB.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# 0.1.0
22

33
* First release in Store
4+
5+
# 0.1.1
6+
7+
* Added positive status message for the production mode check.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frosh/tools",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Provides some basic things for managing the Shopware Installation",
55
"type": "shopware-platform-plugin",
66
"license": "MIT",

src/Components/Health/Checker/ProductionChecker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public function collect(HealthCollection $collection): void
1818
{
1919
if ($this->environment !== 'prod') {
2020
$collection->add(HealthResult::error('frosh-tools.checker.not-prod'));
21+
22+
return;
2123
}
24+
25+
$collection->add(HealthResult::ok('frosh-tools.checker.prodGood'));
2226
}
2327
}

src/Resources/app/administration/src/module/frosh-tools/snippet/de-DE.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"zendOpcacheWarning": "Zend Opcache ist nicht aktiv",
6565
"queuesGood": "Warteschlange läuft regelmäßig",
6666
"queuesWarning": "Warteschlange enthält Daten, die älter als {minutes} Minuten sind",
67-
"not-prod": "Shop ist nicht im produktivmodus"
67+
"not-prod": "Shop ist nicht im Produktivmodus",
68+
"prodGood": "Shop ist im Produktivmodus"
6869
},
6970
"size": "Größe",
7071
"resetQueue": "Queue zurücksetzen",

src/Resources/app/administration/src/module/frosh-tools/snippet/en-GB.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"zendOpcacheWarning": "Zend Opcache is not active",
6565
"queuesGood": "Queues working good",
6666
"queuesWarning": "Queues are older than {minutes} minutes",
67-
"not-prod": "Shop is not in production mode"
67+
"not-prod": "Shop is not in production mode",
68+
"prodGood": "Shop is in production mode"
6869
},
6970
"size": "Size",
7071
"resetQueue": "Reset Queue",

0 commit comments

Comments
 (0)