aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/ActionRouter.php
Commit message (Collapse)AuthorAge
* code style: line breaksAndreas Gohr2023-08-31
|
* coding style: control flow whitespacesAndreas Gohr2023-08-31
|
* codestyle adjustments: function declaration braces/spacesAndreas Gohr2023-08-30
|
* codestyle adjustments: class declaration bracesAndreas Gohr2023-08-30
|
* apply PSR-12 constant visibility ruleAndreas Gohr2023-08-30
| | | | | PSR-12 says constants need their visibility declared from PHP 7.1 onwards
* Apply rector fixes to the rest of incAndreas Gohr2023-08-29
|
* fix handling of loading auth backendAndreas Gohr2021-12-17
| | | | | | | | | | | | | | When a non existing auth backend was configured, the action router ran into an infinie loop exception. The reason was that the denied action required a configured auth system, but denying access should always work. Interestingly the problem did not occur when the auth backend signalled a failure to load. This was because the auth backend was not properly deinitialized. This is now done. To aid debugging similar problems, fatal errors are now logged through the logging mechanism in the action router
* Fix typo in error messageDamien Regad2020-06-07
|
* First go at moving the plugin classes into their own namespaceAndreas Gohr2019-04-20
|
* renamed ActionRouter::checkPermissions to checkPreconditionsAndreas Gohr2018-04-12
| | | | As discussed in #1933
* pass action name by reference. fixes #2117Andreas Gohr2017-09-07
| | | | | | | | | | | This fixes plugins that expect that they can change the global $ACT instead of $event->data in the ACTION_ACT_PREPROCESS event. This make the whole route a little bit uncleaner but would increase backwards compatibility. I'm not sure how widespread the problem is and if adding this is a good idea.
* fix(ActionRouter): trigger ACTION_ACT_PREPROCESS for all actionsMichael Große2017-09-06
| | | | | | This should recreate the behaviour prior to #1933, where the event was triggered for all ACT values. Some plugins, like edittable, depend on the functionality.
* do not hide fatal exceptions during unit testsAndreas Gohr2017-08-27
|
* undo unecessary action routing adjustmentsAndreas Gohr2017-08-27
|
* Test code for workflow 'show - sectionedit - save/cancel' (with ↵LarsDW2232017-08-27
| | | | modifications in test classes and 'send_redirect()' and 'act_dispatch()'.
* fixed some style errors found by scrutinizerAndreas Gohr2017-08-27
|
* introduce a redirect actionAndreas Gohr2017-05-18
| | | | | | Action can now abort to 'redirect' to explicitly trigger a redirect back to showing the current page. Automatic triggering for post->show is now only done when a 'show' action was not explicitly requested.
* allow actions to throw exception that are shown to the userAndreas Gohr2017-05-18
|
* removed unneeded checkAndreas Gohr2017-04-01
| | | | | the $from != $to check is handled further up already and throws an exception.
* no longer rely on actionOk when checking if actions are disabledAndreas Gohr2017-03-31
| | | | | | | loadAction() and checkAction() are now public and could be used within actionOK(). However some weird circular references prevent that. In addition, actionOK is also used to check for things that aren't Actions (yet) like 'rss' and 'top'.
* fixed export action by supporting underscores in actionsAndreas Gohr2017-03-31
| | | | | | Now underscores can be used to have sub actions. The loader will try to find an exact match first, then begin removing parts from the end until a matching action is found.
* fix singleton pattern in ActionRouterAndreas Gohr2017-03-31
|
* better action transitionsAndreas Gohr2017-03-31
| | | | | It should now catch any circular loops (by having a maxiumum recursion depth) and it handles the automatic redirect after save (and others)
* Add action plugin hooks back into the ActionRouterAndreas Gohr2017-03-31
| | | | | | | | | | | | This is not how integration of plugins would ideally be done in this new system. Ideally an action plugin would actually implement an instance of AbstractAction and would just fall into the normal flow of actions here. However to not break a gazillion of existing plugins, this is just add the existing two events into the new system through the use of a Plugin action. Maybe we could add "new" action plugins later.
* all actions should have a class nowAndreas Gohr2017-03-31
| | | | Lots of FIXMEs and the routing isn't integrated, yet
* start of a refactoring the action routingAndreas Gohr2017-03-31
This is neither complete nor working, yet