Skip to content

Move action configuration to ActionConfigManager. - #5643

Open
EreMaijala wants to merge 4 commits into
vufind-org:devfrom
EreMaijala:dev-action-config-manager
Open

Move action configuration to ActionConfigManager.#5643
EreMaijala wants to merge 4 commits into
vufind-org:devfrom
EreMaijala:dev-action-config-manager

Conversation

@EreMaijala

@EreMaijala EreMaijala commented Sep 8, 2026

Copy link
Copy Markdown
Contributor
  • Actions are now configured based on action identifier instead of route name to avoid ambiquity caused by configurable default actions and duplicate routes.
  • Forwarding to an action also configures the action properly.
  • Slash is used as the separator to better align with action plugin manager's aliases.
  • Action configuration is now in module.config.php and each entry has an identifying key to allow module configs to be merged properly.

- Actions are now configured based on action identifier instead of route name to avoid ambiquity caused by configurable default actions and duplicate routes.
- Forwarding to an action also configures the action properly.
@EreMaijala
EreMaijala marked this pull request as draft September 9, 2026 12:46
@EreMaijala
EreMaijala removed the request for review from demiankatz September 9, 2026 12:46
Adds an identifier for each config entry to make configs overridable in other modules.
@EreMaijala
EreMaijala marked this pull request as ready for review September 10, 2026 06:01
* @link https://vufind.org Main Page
*/
interface AccessPermissionInterface
interface AccessPermissionInterface extends ActionConfigInterface

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of kills the usefulness of the interface check in the beginning of applyActionConfig because AbstractAction implements AccessPermissionInterface so in essence all actions are now configurable. But this is unavoidable if we want it to be possible for permissions to be applied to any action or group of actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant