Configuration
<magento-install-dir>/app/code/MyProject/Import/symfony/Resources/config/services.xml
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service
id="import_product.observer.product.website" (1)
class="MyProject\Import\Product\Observers\ProductWebsiteObserver"/> (2)
</services>
</container>
1 | Unique identifier for the override observer class |
2 | Path to the override observer class file ProductWebsiteObserver.php |