slawkens
47ec36a176
Merge branch 'main' into develop
2026-04-24 16:33:01 +02:00
slawkens
609cf152af
Plugins: Fix uninstall when hook is without HOOK_ prefix
2026-04-24 16:24:06 +02:00
slawkens
a467a540b1
Add constant DEFAULT_PRIORITY
2026-04-12 13:14:10 +02:00
slawkens
08507e2940
Plugins: type hints
2026-04-12 13:10:44 +02:00
slawkens
f1aa128408
Feat: plugins autoload init-priority option
2026-04-12 13:10:15 +02:00
slawkens
4145d9eb3c
Fix: Clear hooks on plugin uninstall
...
Fixes error with gesior-shop-system clear-cache.php being called, despite it's removed
2026-04-11 17:49:22 +02:00
slawkens
730a0f2912
Ensure some cache folders & index.html exists
2025-11-02 12:21:29 +01:00
slawkens
fd729242ff
Fix typo -> satisfied
2025-11-02 12:05:47 +01:00
slawkens
dcb96f4ce1
Refactor code - early exit
2025-07-08 13:48:33 +02:00
slawkens
6d43fc181f
In case the script don't have install option, inform the user
2025-06-25 17:36:43 +02:00
slawkens
0da524fefe
Fix plugin install:install command
2025-06-23 00:21:41 +02:00
slawkens
207d6bc691
feat: AutoLoad plugins init.php, by default disabled
2025-06-03 08:52:33 +02:00
slawkens
4d8f5f31ae
Update Plugins.php
2025-05-23 09:04:48 +02:00
slawkens
7d213f479a
feat: autoload install.php
2025-05-23 08:50:38 +02:00
slawkens
e574943707
feat: autoload settings.php
2025-05-23 08:39:09 +02:00
slawkens
9b75011224
New filter: HOOK_FILTER_ROUTES
2025-05-08 20:05:18 +02:00
slawkens
d47195a787
Do not autoload sub-folders if autoload pages is disabled
2025-04-22 13:30:11 +02:00
slawkens
d0d0af289d
Refactor code + use clearCache() instead
2025-04-20 21:32:46 +02:00
slawkens
1d0c173e7d
Clear cache on plugin enable/disable, fixes some issues with plugin pages
2025-04-20 21:30:59 +02:00
slawkens
ceaa0639e6
feat: admin-pages (can add admin pages through plugins)
...
Also possibility to overwrite default myaac admin pages
2025-04-18 13:57:53 +02:00
slawkens
e6f05a2731
Plugin name is required, version is optional
2025-04-06 16:41:28 +02:00
slawkens
6c568fd36a
Fix uninstall plugin when plugin is disabled
2025-04-04 21:08:49 +02:00
Slawomir Boczek
3f6ff3a332
Feature migrations up/down ( #270 )
...
* Migrations up down
* Add forum model
* Syntactic sugar for db structure changes
* Refactor migrations with $up & $down
* Fix migrations upgrade and downgrade
+ Add option to disable auto migrate
* Add migrate:to command
Usage: php aac migrate:to x (x - database version)
* Show error when mail is not enabled
* Fixes regarding to init.php
* Add migrate command to manually upgrade db, incase auto migrate is disabled
* Fixed rest of the migrations
* Limit max version of database
* Don't allow minus number
* Option to clear specified plugin settings by name
* Version is required
* Fix PHPStan errors
* Unset $up after migration, to prevent executing same migration twice
* Add database version to output
* This is not needed
* Update 5.php
* Set database_auto_migrate on install
* Set blank & color only if current db version supports it
* Fix duplicate function declaration
2024-11-22 15:29:23 +01:00
slawkens
afb055f2dc
More obvious name for parameter in -> installMenus
2024-11-19 14:21:15 +01:00
slawkens
8055785c81
Fix installMenus function
2024-11-19 07:48:52 +01:00
slawkens
12d8faa3ed
Do not clear menus by default
2024-11-19 07:05:27 +01:00
slawkens
a2fadc5945
Fixes to installMenus function
2024-11-18 23:48:03 +01:00
slawkens
33a47137c9
Fix hooks priority default
2024-06-29 15:09:44 +02:00
slawkens
dc17b701da
feat: Hooks priority
2024-06-29 14:05:06 +02:00
slawkens
a8d255c04b
feat: Plugins pages: subSubFolders
2024-06-14 08:07:52 +02:00
slawkens
c7a6a539a9
Another approach to fix duplicates - priorities
...
Priority description: (lower number - higher priority)
1-99 Highest priority - overrides everything, even pages from database, use with caption
100 - default for pages in database
101-999 - recommended range for plugins
1000 - default value for plugins if no other specified
1001 - 9999 - no usage currently
10000 - default myaac routes
2024-06-13 21:35:47 +02:00
slawkens
c1d4b4f80c
Make autoload of pages, commands and themes configurable
...
Not everyone might want them to autoload
2024-06-13 14:36:18 +02:00
slawkens
4c0739d3e9
Fixed fastRoute duplicate errors
2024-06-13 11:29:06 +02:00
slawkens
8ef3d06f1e
Fix duplicated routes
2024-05-31 17:22:39 +02:00
slawkens
a4d11c1a12
Rename variables
2024-04-16 10:45:34 +02:00
slawkens
127e03081c
Support for subfolders in plugins/pages
2024-04-15 21:21:16 +02:00
slawkens
c8d4e7d186
Auto clear old menu entries on install
2024-01-27 14:15:42 +01:00
slawkens
aa8e26f6a3
check if menu table exists
2024-01-27 09:34:23 +01:00
slawkens
511e10e78b
Same for themes + commands
2024-01-27 00:56:45 +01:00
slawkens
cfdbc2a8b2
Fixed: disabled plugins should not enable pages
2024-01-27 00:46:34 +01:00
slawkens
1a6fb8bee2
Refactoring classes into src/ folder, so they will be auto-loaded by composer
2024-01-27 00:36:49 +01:00