Skip to content

Commit 53d3491

Browse files
committed
TASK: Remove exception if flow version is >3.3
The composer.json requires >4.0 in the meantime
1 parent 68634d2 commit 53d3491

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

Classes/Queue/FakeQueue.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ public function submit($payload, array $options = [])
8888
$this->messageCache->set($messageCacheIdentifier, serialize($message));
8989

9090
if ($this->async) {
91-
if (!method_exists(Scripts::class, 'executeCommandAsync')) {
92-
throw new \RuntimeException('The "async" flag is set, but the currently used Flow version doesn\'t support this (Flow 3.3+ is required)', 1469116604);
93-
}
9491
Scripts::executeCommandAsync('flowpack.jobqueue.common:job:execute', $this->flowSettings, [$this->name, $messageCacheIdentifier]);
9592
} else {
9693
Scripts::executeCommand('flowpack.jobqueue.common:job:execute', $this->flowSettings, true, [$this->name, $messageCacheIdentifier]);

Configuration/Objects.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ Flowpack\JobQueue\Common\Command\JobCommandController:
1717
arguments:
1818
1:
1919
value: FlowPackJobQueueCommon_MessageCache
20+
21+
Flowpack\JobQueue\Common\Queue\FakeQueue:
22+
properties:
23+
messageCache:
24+
object:
25+
factoryObjectName: Neos\Flow\Cache\CacheManager
26+
factoryMethodName: getCache
27+
arguments:
28+
1:
29+
value: FlowPackJobQueueCommon_MessageCache

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Common functionality for a JobQueue in Flow applications.",
55
"license": "MIT",
66
"require": {
7-
"neos/flow": "~4.0"
7+
"neos/flow": "~4.0",
8+
"neos/cache": "*"
89
},
910
"autoload": {
1011
"psr-4": {
@@ -87,4 +88,4 @@
8788
"Neos.Flow-20170127183102"
8889
]
8990
}
90-
}
91+
}

0 commit comments

Comments
 (0)