Skip to content

Conversation

@vol4onok
Copy link
Contributor

@vol4onok vol4onok commented Apr 8, 2022

Release Table

Module Release Type Constraint Updates
EventBehavior minor

Module EventBehavior

Change log

Improvements

  • Adjusted EventResourceQueryContainerManager so it's collect all required data to EventEntityTransfer instead of id.
  • Adjusted EventResourceQueryContainerPluginIterator so iterator can use ids for build query.

*
* @return array<\Spryker\Shared\Kernel\Transfer\AbstractTransfer>
*/
public function getData(int $offset, int $limit): array;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

here needs to adjust new interface. will be better to have the transfer here @ehsanmx

* @param array<int> $ids
*
* @return \Iterator<array<\Generated\Shared\Transfer\EventEntityTransfer>>
* @return \Iterator<array<\Spryker\Shared\Kernel\Transfer\AbstractEntityTransfer>>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this true? isnt the actual object still the concrete one?


/**
* @param \Spryker\Zed\EventBehavior\Dependency\Plugin\EventResourcePluginInterface $plugin
* @param array<\Spryker\Shared\Kernel\Transfer\AbstractTransfer> $transfers
Copy link
Contributor

Choose a reason for hiding this comment

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

Those are never "Just" the abstract one - at least those are usually invalid to be used for methods that do not exist
Are you only using methods from the abstract one here?

@stereomon
Copy link
Contributor

@vol4onok is this one still relevant?

@vol4onok
Copy link
Contributor Author

I don't remember. Needs to re-check. I think it's relevant. But the code is partially outdated @stereomon

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

Development

Successfully merging this pull request may close these issues.

5 participants