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..
Hi, maybe anyone knows what to do? The HttpApplicationPlugin is already registered in ApplicationDep
Comments
-
It makes sense that the console application does not have a request stack - it’s command line only. It looks like this is all out-of-the-box code so probably worth raising a bug ticket.
0 -
yeah, the klarna integration needs the request stack in console since it will be loaded there. Thx for feedback. I will open bug ticket and drop the klarna integration for the project, since its not used. maybe a better way would be to extract the methods in plugins and load only the needed one
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,089 ⚖️ - Guardians (admin)
hey, i had exactly the same problem when i integrated it.
I fixed it with this code snippet in PayoneDependencyProvider:
protected function addRequestStack(Container $container): Container { $container->set(static::SERVICE_REQUEST_STACK, function (Container $container) { return $container->hasApplicationService(static::SERVICE_REQUEST_STACK) ? $container->getApplicationService(static::SERVICE_REQUEST_STACK) : new RequestStack(); }); return $container; }
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,089 ⚖️ - Guardians (admin)
It is also reported at Spryker already as subissue of another task
0 -
For us I have added the
HttpApplicationPlugin
toConsoleDependencyProvider
ingetApplicationPlugins
method. So it should work for every console command where the http_stack is required.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 940 Developer Corner
- 796 Spryker Development
- 90 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
- 28 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
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random