Skip to content

Commit aa41131

Browse files
committed
Add workaround for missing util.Configurable
1 parent 8668c89 commit aa41131

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/php/module.xp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php namespace rdbms;
2+
3+
use util\Configurable;
4+
5+
module xp-framework/rdbms {
6+
7+
/** Declare util.Configurable */
8+
public function initialize() {
9+
if (interface_exists(Configurable::class)) return;
10+
11+
eval('<?php namespace util; interface Configurable { public function configure($properties); }');
12+
}
13+
}

0 commit comments

Comments
 (0)