File tree 2 files changed +8
-8
lines changed
Tests/Unit/Consumption/Extension
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Enqueue \Bundle \Consumption \Extension ;
4
4
5
+ use Doctrine \Common \Persistence \ManagerRegistry ;
5
6
use Enqueue \Consumption \Context \MessageReceived ;
6
7
use Enqueue \Consumption \MessageReceivedExtensionInterface ;
7
- use Symfony \Bridge \Doctrine \RegistryInterface ;
8
8
9
9
class DoctrineClearIdentityMapExtension implements MessageReceivedExtensionInterface
10
10
{
11
11
/**
12
- * @var RegistryInterface
12
+ * @var ManagerRegistry
13
13
*/
14
14
protected $ registry ;
15
15
16
16
/**
17
- * @param RegistryInterface $registry
17
+ * @param ManagerRegistry $registry
18
18
*/
19
- public function __construct (RegistryInterface $ registry )
19
+ public function __construct (ManagerRegistry $ registry )
20
20
{
21
21
$ this ->registry = $ registry ;
22
22
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Enqueue \Bundle \Tests \Unit \Consumption \Extension ;
4
4
5
+ use Doctrine \Common \Persistence \ManagerRegistry ;
5
6
use Doctrine \Common \Persistence \ObjectManager ;
6
7
use Enqueue \Bundle \Consumption \Extension \DoctrineClearIdentityMapExtension ;
7
8
use Enqueue \Consumption \Context \MessageReceived ;
11
12
use Interop \Queue \Processor ;
12
13
use PHPUnit \Framework \TestCase ;
13
14
use Psr \Log \LoggerInterface ;
14
- use Symfony \Bridge \Doctrine \RegistryInterface ;
15
15
16
16
class DoctrineClearIdentityMapExtensionTest extends TestCase
17
17
{
@@ -59,11 +59,11 @@ protected function createContext(): MessageReceived
59
59
}
60
60
61
61
/**
62
- * @return \PHPUnit_Framework_MockObject_MockObject|RegistryInterface
62
+ * @return \PHPUnit_Framework_MockObject_MockObject|ManagerRegistry
63
63
*/
64
- protected function createRegistryMock (): RegistryInterface
64
+ protected function createRegistryMock (): ManagerRegistry
65
65
{
66
- return $ this ->createMock (RegistryInterface ::class);
66
+ return $ this ->createMock (ManagerRegistry ::class);
67
67
}
68
68
69
69
/**
You can’t perform that action at this time.
0 commit comments