What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
could someone enlighten me what could the array returned by `Spryker\Zed\Oms\Dependency\Plugin\Comma
could someone enlighten me what could the array returned by Spryker\Zed\Oms\Dependency\Plugin\Command\CommandByOOrder
contain?
Docs and docblock seem to omit that piece of information
https://documentation.spryker.com/docs/t-oms-and-state-machines-spryker-commerce-os
Comments
-
Hey Piotr, you can find an answer here:
https://documentation.spryker.com/docs/state-machine-cookbook#commands
at the end of the paragraph0 -
One little trick regarding searching the documentation:
using google f.e. βsite:documentation.spryker.com CommandByOrderβ gives better (more relevant) results comparing to the internal documentation search. In this particular case, relevancy is the same, but the visibility of the returned results is much better0 -
I m sorry, Ive read #commands paragraph twice and failed to find an explanation on what CommandByOrderInterface exactly returns
0 -
except that it is an array
0 -
could you maybe paste relevant fragment here?
0 -
Is it spelled correctly, Command-by-OO-rderInterface?
0 -
and thatβs the essence of your question?
0 -
sorry
0 -
Spryker\Zed\Oms\Dependency\Plugin\Command\CommandByOrderInterface
0 -
docblock states, that an array is returned
0 -
I wonder what I can put in that array or what I can expect from other plugins to put there
0 -
ah, I misunderstood your question either, sorry.
I tried to find if this array is used some where in core - and couldnβt find. So this methods\Spryker\Zed\Oms\Business\OrderStateMachine\OrderStateMachine::triggerEvent
and\Spryker\Zed\Oms\Business\OrderStateMachine\OrderStateMachine::triggerEventForNewItem
are returning the results outside (through the Facade). So youβre free to return whatever you want to back to your projectβs code usages, or return [] if you donβt need any result0 -
Iβm personally never tried (never had a case) to return anything back, so in my case it was []
0 -
I see, athank you
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random