Skip to content

Commit 233b0d8

Browse files
authored
Merge pull request #18 from tawk/drupal-10-support
Drupal 10 support
2 parents 663f659 + 5ef5039 commit 233b0d8

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"email": "accounts@tawk.to"
1010
}
1111
],
12-
"minimum-stability": "dev",
12+
"minimum-stability": "stable",
1313
"require": {
1414
"tawk/url-utils": "2.0.2"
1515
},

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/envs/drupal-10.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DRUPAL_IMAGE_VERSION=10-apache
2+
3+
COMPOSE_PROJECT_NAME=drupal-10-apache

src/core/TawktoGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Drupal\tawk_to\core;
44

5-
if (file_exists(drupal_get_path('module', 'tawk_to') . '/vendor/autoload.php')) {
6-
require_once drupal_get_path('module', 'tawk_to') . '/vendor/autoload.php';
5+
if (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
6+
require_once __DIR__ . '/../../vendor/autoload.php';
77
}
88

99
use Drupal\Core\Cache\Cache;

tawk_to.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ tags:
77
- tawk
88
- chat
99
core: 8.x
10-
core_version_requirement: ^8 || ^9
10+
core_version_requirement: ^8 || ^9 || ^10

0 commit comments

Comments
 (0)