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..
Can someone spot what is wrong here and the controller is not overrides as expected?
Can someone spot what is wrong here and the controller is not overrides as expected?
Comments
-
Have you refreshed the router cache with
vendor/bin/console router:cache:warm-up
?0 -
Maybe you need to run
docker/sdk console cache:class-resolver:build
0 -
Both nothing changed
0 -
Which URL are you calling?
0 -
merchant-gui/create-merchant
0 -
When I create the file is like ok, the controller didn't found. When I create the class inside, it's going to the parent always.
0 -
I am stack here looking the code, what might be the issue...
0 -
Have you tried
bin/console router:cache:warm-up:backoffice
?0 -
Yeap, just now. Nothing
0 -
So what I just found is that, if I create public function __construct() { dd( 'here' ); }
0 -
It's going inside this function in my file
0 -
but the indexAction is always overridden from the parent indexAction Controller
0 -
Can you check the files in
src/Generated/Router/Backoffice
to see which class is defined for that route?0 -
If it is wrong try deleting these generated files and the rerunning the warm up commands. We had this the other day when the files did not update for some reason.
0 -
Seems right
0 -
'merchant-gui:create-merchant:index' => [[], ['_controller' => ['Pyz\\Zed\\MerchantGui\\Communication\\Controller\\CreateMerchantController', 'indexAction'], '_template' => 'MerchantGui/CreateMerchant/index'], [], [['text', '/merchant-gui/create-merchant/index']], [], [], []],
0 -
The indexAction is always overridden from the parent indexAction Controller
0 -
Yep, looks 100% correct. Composer autoloader? eg
composer dump-autoload -o
0 -
What is this exactly?
0 -
Sorry I donβt know the Spryker SDK command for this, but the autoloader will map FQCN to files
0 -
Itβs not very likely, but worth a try - itβs just another cache to clear π
0 -
Module is really called MerchantGui? I've seen some customer prefix in your deleted version of that snippet, something with Shopflix
0 -
Yeap MerchantGui is for marketplace about merchants
0 -
Caching shit, i putted docker/sdk reset and it's working
0 -
Maybe it was a file sync between your host and docker? Either way glad itβs working now, that was very weird!
0 -
Hey Chirstos
please add aSOLVED
tag to the thread and the answer it will be helpful for our future sprykees0
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