From 07a4815b2c72b10c343991948f1f42eb47329baa Mon Sep 17 00:00:00 2001 From: Ralf Lang Date: Thu, 2 Apr 2026 08:40:48 +0200 Subject: [PATCH] fix: Support both old-style Horde_Variables and modern Horde\Util\Variables --- .horde.yml | 6 ++++++ lib/Application.php | 4 +++- src/Hermes.php | 29 +++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/Hermes.php diff --git a/.horde.yml b/.horde.yml index cc6e74d..8791011 100644 --- a/.horde.yml +++ b/.horde.yml @@ -64,3 +64,9 @@ dependencies: composer: horde/nag: ^5 horde/turba: ^5 +autoload: + classmap: + - lib/ + psr-4: + Horde\Hermes\: /src +vendor: horde diff --git a/lib/Application.php b/lib/Application.php index 574d553..a1f3032 100644 --- a/lib/Application.php +++ b/lib/Application.php @@ -17,6 +17,8 @@ * @package Hermes */ +use Horde\Util\Variables; + if (!defined('HERMES_BASE')) { define('HERMES_BASE', __DIR__. '/..'); } @@ -63,7 +65,7 @@ protected function _init() } } - public function download(Horde_Variables $vars) + public function download(Variables|Horde_Variables $vars) { global $notification, $injector; diff --git a/src/Hermes.php b/src/Hermes.php new file mode 100644 index 0000000..471f21c --- /dev/null +++ b/src/Hermes.php @@ -0,0 +1,29 @@ + + * @category Horde + * @license http://www.horde.org/licenses/bsdl.php BSD-2-Clause + * @package Hermes + */ + +declare(strict_types=1); + +namespace Horde\Hermes; + +/** + * Hermes application class. + * + * @author Michael J Rubinsky + * @category Horde + * @copyright 2013-2026 The Horde Project + * @license http://www.horde.org/licenses/bsdl.php BSD-2-Clause + * @package Hermes + */ +class Hermes +{ +}