Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obelink XML V3 #93

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: ItemActionProcessor
Thijzer committed Dec 17, 2024
commit 8fef2e6b7daca30fb8f7befb498951e56be025fc
8 changes: 3 additions & 5 deletions src/Component/Action/ItemActionProcessor.php
Original file line number Diff line number Diff line change
@@ -10,13 +10,11 @@ public function __construct(private readonly array $configurationRules) {}

public function process(ItemInterface|array $item): ItemInterface|array
{
if ($item instanceof ItemInterface) {
foreach ($this->configurationRules as $action) {
foreach ($this->configurationRules as $name => $action) {
if ($item instanceof ItemInterface) {
$action->applyAsItem($item);
continue;
}
}

foreach ($this->configurationRules as $name => $action) {
$item = $action->apply($item);
}