Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3d59d46

Browse files
magento enqueue
1 parent f64ba28 commit 3d59d46

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

‎README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
```

‎src/Enqueue/Enqueue/Helper/Data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /