diff --git a/composer.json b/composer.json
index 65d5d26..d400fc0 100755
--- a/composer.json
+++ b/composer.json
@@ -32,12 +32,13 @@
},
"require": {
"php": "^7.4 || ^8.0",
- "contao/core-bundle": "^4.9 || ^5.0",
+ "contao/core-bundle": "^4.13 || ^5.0",
"doctrine/dbal": "^2.11 || ^3.0",
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
"symfony/filesystem": "^4.4 || ^5.4 || ^6.0",
"symfony/finder": "^4.4 || ^5.4 || ^6.0",
- "symfony/http-kernel": "^4.4 || ^5.4 || ^6.0"
+ "symfony/http-kernel": "^4.4 || ^5.4 || ^6.0",
+ "symfony/polyfill-php80": "^1.29"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
@@ -50,13 +51,14 @@
"config": {
"allow-plugins": {
"contao-components/installer": true,
- "contao/manager-plugin": true
+ "contao/manager-plugin": true,
+ "php-http/discovery": false
}
},
"extra": {
"contao-manager-plugin": "DirkKlemmt\\ContaoMmenuBundle\\ContaoManager\\Plugin"
},
"scripts": {
- "ecs": "@php tools/ecs/vendor/bin/ecs check src/ --config tools/ecs/config/default.php --fix --ansi"
+ "ecs": "@php tools/ecs/vendor/bin/ecs --config tools/ecs/config/default.php --fix --ansi"
}
}
diff --git a/src/Resources/config/services.yml b/config/services.yml
similarity index 100%
rename from src/Resources/config/services.yml
rename to config/services.yml
diff --git a/src/Resources/contao/config/config.php b/contao/config/config.php
similarity index 86%
rename from src/Resources/contao/config/config.php
rename to contao/config/config.php
index 1a78980..39e68ac 100644
--- a/src/Resources/contao/config/config.php
+++ b/contao/config/config.php
@@ -6,27 +6,28 @@
* This file is part of the ContaoMmenuBundle.
*
* (c) Dirk Klemmt
- * (c) inspiredminds
+ * (c) INSPIRED MINDS
*
* @license MIT
*/
+use Contao\ArrayUtil;
use DirkKlemmt\ContaoMmenuBundle\FrontendModule\MmenuCustomModule;
use DirkKlemmt\ContaoMmenuBundle\FrontendModule\MmenuHtmlModule;
use DirkKlemmt\ContaoMmenuBundle\FrontendModule\MmenuModule;
use DirkKlemmt\ContaoMmenuBundle\Model\MmenuConfigModel;
-array_insert(
+ArrayUtil::arrayInsert(
$GLOBALS['BE_MOD']['system'],
0,
[
'mmenu_config' => [
'tables' => ['tl_dk_mmenu_config'],
],
- ]
+ ],
);
-array_insert($GLOBALS['FE_MOD'], 3, [
+ArrayUtil::arrayInsert($GLOBALS['FE_MOD'], 3, [
'navigationMenu' => [
'mmenu' => MmenuModule::class,
'mmenuCustom' => MmenuCustomModule::class,
diff --git a/src/Resources/contao/dca/tl_dk_mmenu_config.php b/contao/dca/tl_dk_mmenu_config.php
similarity index 99%
rename from src/Resources/contao/dca/tl_dk_mmenu_config.php
rename to contao/dca/tl_dk_mmenu_config.php
index bb1eddc..f724606 100644
--- a/src/Resources/contao/dca/tl_dk_mmenu_config.php
+++ b/contao/dca/tl_dk_mmenu_config.php
@@ -6,7 +6,7 @@
* This file is part of the ContaoMmenuBundle.
*
* (c) Dirk Klemmt
- * (c) inspiredminds
+ * (c) INSPIRED MINDS
*
* @license MIT
*/
diff --git a/src/Resources/contao/dca/tl_module.php b/contao/dca/tl_module.php
similarity index 98%
rename from src/Resources/contao/dca/tl_module.php
rename to contao/dca/tl_module.php
index d5cfb2c..d729c37 100644
--- a/src/Resources/contao/dca/tl_module.php
+++ b/contao/dca/tl_module.php
@@ -6,7 +6,7 @@
* This file is part of the ContaoMmenuBundle.
*
* (c) Dirk Klemmt
- * (c) inspiredminds
+ * (c) INSPIRED MINDS
*
* @license MIT
*/
diff --git a/src/Resources/contao/languages/de/default.xlf b/contao/languages/de/default.xlf
similarity index 100%
rename from src/Resources/contao/languages/de/default.xlf
rename to contao/languages/de/default.xlf
diff --git a/src/Resources/contao/languages/de/modules.xlf b/contao/languages/de/modules.xlf
similarity index 100%
rename from src/Resources/contao/languages/de/modules.xlf
rename to contao/languages/de/modules.xlf
diff --git a/src/Resources/contao/languages/de/tl_dk_mmenu_config.xlf b/contao/languages/de/tl_dk_mmenu_config.xlf
similarity index 97%
rename from src/Resources/contao/languages/de/tl_dk_mmenu_config.xlf
rename to contao/languages/de/tl_dk_mmenu_config.xlf
index 31563f7..75fb633 100644
--- a/src/Resources/contao/languages/de/tl_dk_mmenu_config.xlf
+++ b/contao/languages/de/tl_dk_mmenu_config.xlf
@@ -71,6 +71,10 @@
Theme mit hohem Kontrast
+