Closed
Description
It was quite hard to understand the issue with my request schema until I went into Magento\Framework\Communication\Config\Validator
and changed exception instantiation from new LogicException($message)
to new LogicException($message, 0, $e)
. My issue was to do with this in the end: Each getter must have a doc block
. It would be better if it was possible to see that error message out of the box, but instead I was only seeing Request schema definition for topic "..." should reference existing service class. Given ...
(while the class obviously existed).
Preconditions
Magento 2.2.5
Steps to reproduce
- A schema class:
class Dummy {
private $foo;
public function getFoo() { return $this->foo; }
public function setFoo($foo) { $this->foo = $foo; }
}
- Communication configuration (
communication.xml
):
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Communication/etc/communication.xsd">
<topic name="foo_topic" request="Dummy" />
</config>
- Run validation for communication configuration. It can be done either automatically if you're using Magento EE, or can be done manually by calling into
Magento\Framework\Communication\Config->getTopic("foo_topic")
Expected result
Actual result
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release