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..
I have defined the method getFactory and getFacade above class and when i'm using getFactory it is n
I have defined the method getFactory and getFacade above class and when i'm using getFactory it is not reaching in the function but the control mousclick gets the path but it is not working.
return $this->getFacade()->exportCustomer($dataExportConfigurationTransfer); this line is not working
Comments
-
How should
return $this->getFacade()->exportCustomer($dataExportConfigurationTransfer);
work, there is an earlier return statement on line 49, so your expected return is never reached0 -
Sorry , i am just testing that but previously getFacad() not working but that object initiation one with new keyword working fine..
0 -
-
I commented there lines before , but getFacade , getFactory is not working all that method we defined on above of class using @method is not working for me
0 -
As you extend the
AbstractPlugin
there is no need to get the factory first,$this->getFacade()
should work fine.
Is it the rightAbstractPlugin
you are extending (Spryker\Zed\Kernel\Communication\AbstractPlugin
)?The
AbstractPlugin
has theFacadeResolverAwareTrait
which exposes thegetFacade()
method.0 -
No , i am using another
AbstractPlugin
0 -
Then either use the correct one or use the
FacadeResolverAwareTrait
directly in your class.
But I'm pretty sure the solution is to use the rightAbstractPlugin
. Which one you are using?0 -
Yes now it is working but in my Facade getFactory is not working π
0 -
-
- you should extend the SalesDataExportFacade from Spryker or you lose all the methods that are already implemented in the core (spryker)
- Is there any error message hinting that
getFactory
isn't working, the code looks fine to me
0 -
i am working on customer data export so i run that through command line so i didn't get any error.
0 -
But when you are working on CustomerDataExport (module I assume), why do you use the
SalesDataExportFacade
?0 -
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 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
- 26 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