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 9328305

Browse files
magento enqueue
1 parent 2be6ba9 commit 9328305

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

‎composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"type": "magento-module",
44
"description": "Enqueue Message Queue for Magento",
55
"require": {
6-
"enqueue/amqp-ext": "^0.3",
7-
"enqueue/dbal": "^0.3",
86
"enqueue/enqueue": "^0.3",
97
"enqueue/simple-client": "^0.3"
108
},

‎shell/enqueue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
$enqueue = Mage::helper('enqueue');
2525
$enqueue->bindProcessors();
2626

27-
/** @var \Enqueue\Client\SimpleClient $client */
27+
/** @var \Enqueue\SimpleClient\SimpleClient $client */
2828
$client = $enqueue->getClient();
2929

3030
$application = new Application();
@@ -34,7 +34,7 @@
3434
$application->add(new TopicsCommand($client->getTopicMetaRegistry()));
3535
$application->add(new ConsumeMessagesCommand(
3636
$client->getQueueConsumer(),
37-
$client->getProcessor(),
37+
$client->getDelegateProcessor(),
3838
$client->getQueueMetaRegistry(),
3939
$client->getDriver()
4040
));

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
use Enqueue\Client\Message;
4-
use Enqueue\Client\SimpleClient;
54
use Enqueue\Psr\PsrProcessor;
5+
use Enqueue\SimpleClient\SimpleClient;
66

77
class Enqueue_Enqueue_Helper_Data extends Mage_Core_Helper_Data
88
{
@@ -232,10 +232,12 @@ public function getRedisConfig()
232232
public function getDbalConfig()
233233
{
234234
return ['dbal' => [
235-
'url' => Mage::getStoreConfig('enqueue/redis/url'),
236-
'table_name' => Mage::getStoreConfig('enqueue/redis/table_name'),
237-
'polling_interval' => (int) Mage::getStoreConfig('enqueue/redis/polling_interval'),
238-
'lazy' => (bool) Mage::getStoreConfig('enqueue/redis/lazy'),
235+
'connection' => [
236+
'url' => Mage::getStoreConfig('enqueue/dbal/url'),
237+
],
238+
'table_name' => Mage::getStoreConfig('enqueue/dbal/table_name'),
239+
'polling_interval' => (int) Mage::getStoreConfig('enqueue/dbal/polling_interval'),
240+
'lazy' => (bool) Mage::getStoreConfig('enqueue/dbal/lazy'),
239241
]];
240242
}
241243
}

‎src/Enqueue/Enqueue/etc/system.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@
388388
<show_in_default>1</show_in_default>
389389
<show_in_website>0</show_in_website>
390390
<show_in_store>0</show_in_store>
391+
<comment><![CDATA[<strong style="color:orange">Note!</strong> <strong>Client:Router Topic</strong> and <strong>Client:Router Queue</strong> must be equal for this transport.]]></comment>
391392
<fields>
392393
<store_dir translate="label">
393394
<label>Store directory</label>
@@ -546,7 +547,7 @@
546547
<show_in_default>1</show_in_default>
547548
<show_in_website>0</show_in_website>
548549
<show_in_store>-</show_in_store>
549-
<comment><![CDATA[<a target="_blank" href="http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url">Connecting using a URL</a>]]></comment>
550+
<comment><![CDATA[<a target="_blank" href="http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url">Connecting using a URL</a> Example: mysql://user:password@host:port/dbname?charset=UTF8]]></comment>
550551
</url>
551552
<table_name translate="label">
552553
<label>Table name</label>

0 commit comments

Comments
(0)

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