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..
Hello, the hands-on section "Define and Use a Config Value" of the lesson "Project Customization" co
Hello, the hands-on section "Define and Use a Config Value" of the lesson "Project Customization" could use a lot more hints.
Comments
-
Hi Simon, thank you for the feedback! Will pass this along to our team! π
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 βοΈ - Guardians (admin)
Hey, what additional hints would have helped you to solve this challenge better?
0 -
I might be able to answer that, if I saw the finished answer. Oh, that's what they wanted us to do, now I see.
I have the backoffice HelloWorld example done, as well as the Yves Training stuff involved with the Antelope (Persist, Fetch...).
I've added a config value to config\Shared\config_default.php:
$config['training-test-constant'] = 123;
I've added Pyz\Zed\Training\TrainingConfig.php:
... class TrainingConfig extends AbstractBundleConfig { public function getTrainingTestConstant() { return $this->get('training-test-constant'); } }
I've added Pyz\Zed\Training\TrainingCommunicationFactory.php:
... class TrainingCommunicationFactory extends AbstractCommunicationFactory { // is this supposed to be left empty? }
I'm guessing the end result would print my test constant 123 in the backoffice HelloWorld example, not in the Yves Training Antelope example. But I'm confused as to how to use the Training module from the HelloWorld indexController. Create a Training object?
How important are those magic method annotations?
/** * @method \Pyz\Zed\Training\TrainingConfig getConfig() */
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 βοΈ - Guardians (admin)
yes, you are just missing one step: use your config value in the HelloController
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 βοΈ - Guardians (admin)
But thank you for your feedback - it seems that this is not 100% clear so we will need to adjust
0 -
-
Guess the confusion comes from the task asking us to show a config value in the backoffice HelloWorld example, but we are writing classes to the "Persist, Fetch..." lesson's Training folder.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 73 Spryker News
- 911 Developer Corner
- 771 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 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
- 69 Spryker Safari Questions
- 50 Random