Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
communication_multiple_handlers_synchronous_mode.php
Go to the documentation of this file.
1 <?php
7 return [
8  'communication' => [
9  'topics' => [
10  'customerDeleted' => [
11  'name' => 'customerDeleted',
12  'is_synchronous' => true,
13  'request' => [
14  [
15  'param_name' => 'customer',
16  'param_position' => 0,
17  'is_required' => true,
18  'param_type' => \Magento\Customer\Api\Data\CustomerInterface::class,
19  ],
20  ],
21  'request_type' => 'service_method_interface',
22  'response' => 'bool',
23  'handlers' => [
24  'customHandler' => [
25  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
26  'method' => 'deleteById',
27  ],
28  'defaultHandler' => [
29  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
30  'method' => 'get',
31  ],
32  ],
33  ],
34  ]
35  ]
36 ];