Updates register plugin to new pages system, bumps version

main
Yasen Pramatarov 2025-05-08 19:38:21 +03:00
parent 36e81104f1
commit 2f4b0b7aef
2 changed files with 8 additions and 6 deletions

View File

@ -1,10 +1,12 @@
<?php <?php
// Add to allowed URLs // Register plugin bootstrap
register_hook('filter_allowed_urls', function($urls) { // (here we add any plugin autoloader, if needed)
$urls[] = 'register';
return $urls; // List here all the controllers in "/controllers/" that we need as pages
}); $GLOBALS['plugin_controllers']['register'] = [
'register'
];
// Add to publicly accessible pages // Add to publicly accessible pages
register_hook('filter_public_pages', function($pages) { register_hook('filter_public_pages', function($pages) {

View File

@ -1,6 +1,6 @@
{ {
"name": "Registration Plugin", "name": "Registration Plugin",
"version": "1.0.0", "version": "1.0.1",
"enabled": true, "enabled": true,
"description": "Provides registration functionality as a plugin." "description": "Provides registration functionality as a plugin."
} }