Skip to content

Commit f48780c

Browse files
committed
Implemente module version header
1 parent 8a7bc81 commit f48780c

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
v1.0.30
3+
- added module version header;
4+
25
v1.0.29
36
- img-src CSP rule added;
47

Model/Webhook/Adapter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
class Adapter
1414
{
1515

16+
public const MODULE_VERSION = '1.0.30';
17+
1618
/**
1719
* @var Json $json
1820
*/
@@ -75,6 +77,7 @@ private function call($event, $data, $scopeCode = null)
7577
$client = $this->clientFactory->create();
7678
$client->addHeader('Content-Type', 'application/json');
7779
$client->addHeader('Accept', 'application/json');
80+
$client->addHeader('x-stape-app-version', self::MODULE_VERSION);
7881

7982
try {
8083

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": [
66
"GPL-3.0-only"
77
],
8-
"version": "1.0.29",
8+
"version": "1.0.30",
99
"require": {
1010
"php": ">=7.4.0",
1111
"jeremykendall/php-domain-parser": "^6.0"

etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22

33
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
4-
<module name="Stape_Gtm" schema_version="1.0.29" setup_version="1.0.29">
4+
<module name="Stape_Gtm" schema_version="1.0.30" setup_version="1.0.30">
55
<sequence>
66
<module name="Magento_Backend" />
77
<module name="Magento_Catalog" />

0 commit comments

Comments
 (0)