Skip to content

Eliminate plugins for ActionInterface in Framework #28050

Closed
@buskamuza

Description

@buskamuza

Summary (*)

Magento 2.4-develop
Eliminate plugins for \Magento\Framework\App\ActionInterface under lib/internal/Magento/Framework/App/Action/Plugin
Reason: plugins should be used to customize behavior of one module from another module. In this case, plugins that belong to Framework customize class behavior of the same Framework.

Examples (*)

The problem is in the code and execution flow being more complex than it could be.

Proposed solution

It is suggested to add desired behavior directly to the place where it's expected to execute. Consider \Magento\Framework\App\FrontController::dispatch() part of the framework as the place to inject necessary behavior.

Metadata

Metadata

Assignees

Labels

Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions