File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed
src/Enqueue/Enqueue/Helper Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1+
2+
3+ app/etc/local.xml
4+ ``` xml
5+ <config >
6+ <default >
7+ <enqueue >
8+ <processors >
9+ <processor1 >
10+ <topic >topic1</topic >
11+ <helper >magento-helper-name1</helper >
12+ </processor1 >
13+ <processor2 >
14+ <topic >topic2</topic >
15+ <helper >magento-helper-name2</helper >
16+ </processor2 >
17+ </processors >
18+ </enqueue >
19+ </default >
20+ </config >
21+ ```
Original file line number Diff line number Diff line change @@ -17,18 +17,18 @@ public function bindProcessors()
1717
1818 foreach ($ processors as $ name => $ config ) {
1919 if (empty ($ config ['topic ' ])) {
20- throw new \LogicException ('Topic name is not set for processor: "%s" ' , $ name );
20+ throw new \LogicException (sprintf ( 'Topic name is not set for processor: "%s" ' , $ name) );
2121 }
2222
2323 if (empty ($ config ['helper ' ])) {
24- throw new \LogicException ('Helper name is not set for processor: "%s" ' , $ name );
24+ throw new \LogicException (sprintf ( 'Helper name is not set for processor: "%s" ' , $ name) );
2525 }
2626
2727 $ this ->getClient ()->bind ($ config ['topic ' ], $ name , function () use ($ config ) {
2828 $ processor = Mage::helper ($ config ['helper ' ]);
2929
3030 if (false == $ processor instanceof PsrProcessor) {
31- throw new \LogicException ();
31+ throw new \LogicException (sprintf ( ' Expects processor is instance of: "%s" ' , PsrProcessor::class) );
3232 }
3333
3434 call_user_func_array ([$ processor , 'process ' ], func_get_args ());
You can’t perform that action at this time.
0 commit comments