diff --git a/livechat.info.yml b/livechat.info.yml
index a3cccad..6f9aef8 100644
--- a/livechat.info.yml
+++ b/livechat.info.yml
@@ -5,4 +5,5 @@ package: Utility
configure: livechat.settings
version: '8.x'
core: '8.x'
+core_version_requirement: ^8 || ^9
project: 'livechat'
diff --git a/livechat.install b/livechat.install
index 1e47fb5..17e5e8b 100755
--- a/livechat.install
+++ b/livechat.install
@@ -5,6 +5,8 @@
* Installation file for the LiveChat module.
*/
+use Drupal\Core\Url;
+
/**
* Implements hook_requirements().
*/
@@ -14,7 +16,7 @@ function livechat_requirements($phase) {
if ($phase == 'runtime' && !(\Drupal::config('livechat.settings')->get('licence_number', FALSE))) {
$requirements['livechat'] = [
'title' => t('LiveChat module'),
- 'description' => t('LiveChat module has not been configured yet. Please configure its settings from the LiveChat settings page.', [':url' => \Drupal::url('livechat.settings')]),
+ 'description' => t('LiveChat module has not been configured yet. Please configure its settings from the LiveChat settings page.', [':url' => Url::fromRoute('livechat.settings')]),
'severity' => REQUIREMENT_ERROR,
'value' => t('Not configured'),
];