Magento 2 – Observer after order not work

In Magento 2, I try to add an observer sales_order_place_after and it doesn’t work. app/code/Vendor/Module/etc/event.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”sales_order_place_after”> <observer name=”vendor_module_order_place_after” instance=”Vendor\Module\Observer\OrderPlaceAfter” /> </event> </config> app/code/Vendor/Module/Observer/OrderPlaceAfter.php <?php namespace Vendor\Module\Observer; class OrderPlaceAfter implements \Magento\Framework\Event\ObserverInterface { protected $_logger; protected $_myObserverFactory; /** * @param \Psr\Log\LoggerInterface $_logger */ public function __construct( \Vendor\Module\Logger\Logger $logger, \Vendor\Module\Model\MyObserverFactory $myObserverFactory )…

Details