Skip to content

Commit fd235f5

Browse files
committed
Merge branch 'master' into 0.9
2 parents 370eb67 + f58729b commit fd235f5

36 files changed

Lines changed: 483 additions & 90 deletions

‎.travis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ matrix:
2020
- php: 7.0
2121
env: SYMFONY_VERSION=3.0.* UNIT_TESTS=true
2222
- php: 7.1
23-
env: SYMFONY_VERSION=v4.0.0-BETA4 UNIT_TESTS=true
23+
env: SYMFONY_VERSION=4.0.* UNIT_TESTS=true
2424
- php: 7.1
2525
env: SYMFONY_VERSION=3.4.* UNIT_TESTS=true
2626
- php: 7.2
@@ -37,7 +37,7 @@ matrix:
3737
env: SYMFONY_VERSION=3.3.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
3838
- php: 7.1
3939
services: docker
40-
env: SYMFONY_VERSION=v4.0.0-BETA4 FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
40+
env: SYMFONY_VERSION=4.0.* FUNCTIONAL_TESTS=true PREPARE_CONTAINER=true
4141
- php: 7.1
4242
services: docker
4343
env: SYMFONY_VERSION=3.3.* RDKAFKA_TESTS=true PREPARE_CONTAINER=true

‎CHANGELOG.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Change Log
22

3+
## [0.8.23](https://github.com/php-enqueue/enqueue-dev/tree/0.8.23) (2018-03-06)
4+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.8.22...0.8.23)
5+
6+
- \[doc\]\[magento2\]\[skip ci\] Add docs for Mangeto2 module. [\#401](https://github.com/php-enqueue/enqueue-dev/pull/401) ([makasim](https://github.com/makasim))
7+
- Allow queue interop 1.0 alpha. [\#400](https://github.com/php-enqueue/enqueue-dev/pull/400) ([makasim](https://github.com/makasim))
8+
- Update Travis config to use Symfony 4 release [\#397](https://github.com/php-enqueue/enqueue-dev/pull/397) ([msheakoski](https://github.com/msheakoski))
9+
- Clean up when a job triggers an exception [\#395](https://github.com/php-enqueue/enqueue-dev/pull/395) ([msheakoski](https://github.com/msheakoski))
10+
11+
## [0.8.22](https://github.com/php-enqueue/enqueue-dev/tree/0.8.22) (2018-03-01)
12+
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.8.21...0.8.22)
13+
14+
- Runtime exception "\_\_construct\(\)" references interface "Enqueue\Client\ProducerInterface" but no such service exists [\#376](https://github.com/php-enqueue/enqueue-dev/issues/376)
15+
- \[bundle\] add producer interface alias. [\#382](https://github.com/php-enqueue/enqueue-dev/pull/382) ([makasim](https://github.com/makasim))
16+
17+
- \[Simple Client\] The simple client requires amqp-ext even if you use another brokers [\#386](https://github.com/php-enqueue/enqueue-dev/issues/386)
18+
- \[symfony bundle\] EnqueueExtension. Transport factory with such name already added. Name stomp [\#383](https://github.com/php-enqueue/enqueue-dev/issues/383)
19+
- Problem registering SQS transport using DSN string [\#380](https://github.com/php-enqueue/enqueue-dev/issues/380)
20+
- \[client\] Simple Client should not depend on amqp-ext. [\#389](https://github.com/php-enqueue/enqueue-dev/pull/389) ([makasim](https://github.com/makasim))
21+
- \[bundle\] fix for "Transport factory with such name already added" [\#388](https://github.com/php-enqueue/enqueue-dev/pull/388) ([makasim](https://github.com/makasim))
22+
23+
- Close Connection [\#384](https://github.com/php-enqueue/enqueue-dev/issues/384)
24+
- Outdated bundle documentation [\#381](https://github.com/php-enqueue/enqueue-dev/issues/381)
25+
- \[RFC\] Throttle/debounce [\#378](https://github.com/php-enqueue/enqueue-dev/issues/378)
26+
327
## [0.8.21](https://github.com/php-enqueue/enqueue-dev/tree/0.8.21) (2018-02-16)
428
[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.8.20...0.8.21)
529

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Features:
6767
[![Latest Stable Version](https://poser.pugx.org/enqueue/null/version.png)](https://packagist.org/packages/enqueue/null)
6868
* [Symfony bundle](docs/bundle/quick_tour.md)
6969
* [Magento1 extension](docs/magento/quick_tour.md)
70+
* [Magento2 module](docs/magento2/quick_tour.md)
7071
* [Laravel extension](docs/laravel/quick_tour.md)
7172
* [Yii2. Amqp driver](docs/yii/amqp_driver.md)
7273
* [Message bus](docs/quick_tour.md#client) support.

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"enqueue/simple-client": "*@dev",
2828
"enqueue/test": "*@dev",
2929
"enqueue/async-event-dispatcher": "*@dev",
30-
"queue-interop/queue-interop": "^0.6@dev",
30+
"queue-interop/queue-interop": "^0.6@dev|^1.0.0-alpha1",
3131
"queue-interop/amqp-interop": "^0.7@dev",
3232
"queue-interop/queue-spec": "^0.5.4@dev",
3333

‎docs/bundle/functional_testing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class FooTest extends WebTestCase
7272
*/
7373
private function getProducer()
7474
{
75-
return $this->client->getContainer()->get('enqueue.producer');
75+
return $this->client->getContainer()->get(TraceableProducer::class);
7676
}
7777
}
7878
```

‎docs/bundle/message_producer.md‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,20 @@ The producer has two types on send methods:
3434
```php
3535
<?php
3636

37+
use Enqueue\Client\ProducerInterface;
38+
use Enqueue\Client\SpoolProducer;
39+
3740
/** @var Symfony\Component\DependencyInjection\ContainerInterface $container */
3841

3942
/** @var \Enqueue\Client\ProducerInterface $producer */
40-
$producer = $container->get('enqueue.producer');
43+
$producer = $container->get(ProducerInterface::class);
4144

4245
// message is being sent right now
4346
$producer->sendEvent('a_topic', 'Hello there!');
4447

4548

4649
/** @var \Enqueue\Client\SpoolProducer $spoolProducer */
47-
$spoolProducer = $container->get('enqueue.spool_producer');
50+
$spoolProducer = $container->get(SpoolProducer::class);
4851

4952
// message is being sent on console.terminate or kernel.terminate event
5053
$spoolProducer->sendEvent('a_topic', 'Hello there!');
@@ -58,10 +61,13 @@ $spoolProducer->flush();
5861
```php
5962
<?php
6063

64+
use Enqueue\Client\ProducerInterface;
65+
use Enqueue\Client\SpoolProducer;
66+
6167
/** @var Symfony\Component\DependencyInjection\ContainerInterface $container */
6268

6369
/** @var \Enqueue\Client\ProducerInterface $producer */
64-
$producer = $container->get('enqueue.producer');
70+
$producer = $container->get(ProducerInterface::class);
6571

6672
// message is being sent right now, we use it as RPC
6773
$promise = $producer->sendCommand('a_processor_name', 'Hello there!', $needReply = true);
@@ -70,7 +76,7 @@ $replyMessage = $promise->receive();
7076

7177

7278
/** @var \Enqueue\Client\SpoolProducer $spoolProducer */
73-
$spoolProducer = $container->get('enqueue.spool_producer');
79+
$spoolProducer = $container->get(SpoolProducer::class);
7480

7581
// message is being sent on console.terminate or kernel.terminate event
7682
$spoolProducer->sendCommand('a_processor_name', 'Hello there!');

‎docs/bundle/production_settings.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It runs four instances of `enqueue:consume` command.
1515

1616
```ini
1717
[program:pf_message_consumer]
18-
command=/path/to/app/console --env=prod --no-debug --time-limit="now + 5 minutes" enqueue:consume
18+
command=/path/to/bin/console --env=prod --no-debug --time-limit="now + 5 minutes" enqueue:consume
1919
process_name=%(program_name)s_%(process_num)02d
2020
numprocs=4
2121
autostart=true

‎docs/bundle/quick_tour.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Once you configured everything you can start producing messages:
5757
5858
```php
5959
<?php
60-
use Enqueue\Client\Producer;
60+
use Enqueue\Client\ProducerInterface;
6161

62-
/** @var Producer $producer **/
63-
$producer = $container->get('enqueue.producer');
62+
/** @var ProducerInterface $producer **/
63+
$producer = $container->get(ProducerInterface::class);
6464

6565

6666
// send event to many consumers
@@ -109,7 +109,7 @@ foo_message_processor:
109109
Now you can start consuming messages:
110110
111111
```bash
112-
$ ./app/console enqueue:consume --setup-broker
112+
$ ./bin/console enqueue:consume --setup-broker -vvv
113113
```
114114

115115
_**Note**: Add -vvv to find out what is going while you are consuming messages. There is a lot of valuable debug info there._

‎docs/elastica-bundle/overview.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
`EnqueueElasticaBundle` provides extra features for `FOSElasticaBundle` such as:
44

5-
* [Speed up populate command.](https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Resources/doc/cookbook/speed-up-populate-command.md)
6-
* [Doctrine queue listener.](https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/Resources/doc/cookbook/doctrine-queue-listener.md)
5+
* [Speed up populate command.](https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/doc/cookbook/speed-up-populate-command.md)
6+
* [Doctrine queue listener.](https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/master/doc/cookbook/doctrine-queue-listener.md)
77

88
[back to index](../index.md)
199 KB
Loading

0 commit comments

Comments
 (0)