Skip to content

Commit 3e013f4

Browse files
committed
fix tests.
1 parent 27e67b0 commit 3e013f4

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

pkg/enqueue-bundle/Tests/Functional/App/AsyncListener.php

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Enqueue\Client\ProducerInterface;
88
use Symfony\Component\EventDispatcher\Event;
99

10-
class AsyncListener
10+
class AsyncListener extends \Enqueue\AsyncEventDispatcher\AsyncListener
1111
{
1212
/**
1313
* @var ProducerInterface
@@ -19,8 +19,6 @@ class AsyncListener
1919
*/
2020
private $registry;
2121

22-
private $syncMode = [];
23-
2422
/**
2523
* @param ProducerInterface $producer
2624
* @param Registry $registry
@@ -31,34 +29,6 @@ public function __construct(ProducerInterface $producer, Registry $registry)
3129
$this->registry = $registry;
3230
}
3331

34-
public function __invoke(Event $event, $eventName)
35-
{
36-
$this->onEvent($event, $eventName);
37-
}
38-
39-
public function resetSyncMode()
40-
{
41-
$this->syncMode = [];
42-
}
43-
44-
/**
45-
* @param string $eventName
46-
*/
47-
public function syncMode($eventName)
48-
{
49-
$this->syncMode[$eventName] = true;
50-
}
51-
52-
/**
53-
* @param string $eventName
54-
*
55-
* @return bool
56-
*/
57-
public function isSyncMode($eventName)
58-
{
59-
return isset($this->syncMode[$eventName]);
60-
}
61-
6232
/**
6333
* @param Event $event
6434
* @param string $eventName

0 commit comments

Comments
 (0)