1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 15:16:44 +02:00

Use Adminer\Plugins

This commit is contained in:
Jakub Vrana
2025-03-26 11:10:37 +01:00
parent 109b0df6de
commit a60e00bf72
5 changed files with 5 additions and 9 deletions

View File

@@ -2,10 +2,9 @@
// To create Adminer just for Elasticsearch, run `../compile.php elastic`.
function adminer_object() {
include_once "../plugins/plugin.php";
include_once "../plugins/login-password-less.php";
include_once "../plugins/drivers/elastic.php";
return new AdminerPlugin(array(
return new Adminer\Plugins(array(
// TODO: inline the result of password_hash() so that the password is not visible in source codes
new AdminerLoginPasswordLess(password_hash("YOUR_PASSWORD_HERE", PASSWORD_DEFAULT)),
));