Skip to content

Commit 59b9767

Browse files
committed
Rmoved traces of doctrine/annotations
1 parent b640143 commit 59b9767

File tree

7 files changed

+3
-21
lines changed

7 files changed

+3
-21
lines changed

Services/AnnotationGetter.php

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

33
namespace W3C\LifecycleEventsBundle\Services;
44

5-
use Doctrine\Common\Annotations\Reader;
65
use Doctrine\ORM\Mapping\ClassMetadata;
7-
use ReflectionClass;
86
use ReflectionException;
97

108
/**

Tests/Attribute/UpdateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace LifecycleEventsBundle\Tests\Attribute;
44

5-
use Doctrine\Common\Annotations\AnnotationException;
65
use PHPUnit\Framework\TestCase;
76
use W3C\LifecycleEventsBundle\Annotation\Update;
87
use W3C\LifecycleEventsBundle\Tests\Attribute\Fixtures\User;

Tests/EventListener/LifecycleEventsListenerInverseNoMonitorTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace W3C\LifecycleEventsBundle\Tests\EventListener;
44

5-
use Doctrine\Common\Annotations\AnnotationReader;
6-
use Doctrine\Common\Annotations\AnnotationRegistry;
75
use Doctrine\Common\Collections\ArrayCollection;
86
use Doctrine\Common\Util\ClassUtils;
97
use Doctrine\ORM\EntityManagerInterface;
@@ -180,7 +178,7 @@ public function setUp() : void
180178
}
181179
});
182180

183-
$this->listener = new LifecycleEventsListener($this->dispatcher, new AnnotationGetter(new AnnotationReader()));
181+
$this->listener = new LifecycleEventsListener($this->dispatcher, new AnnotationGetter());
184182
}
185183

186184
public function testOneToOnePostPersist()

Tests/EventListener/LifecycleEventsListenerInverseTest.php

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

33
namespace W3C\LifecycleEventsBundle\Tests\EventListener;
44

5-
use Doctrine\Common\Annotations\AnnotationReader;
6-
use Doctrine\Common\Annotations\AnnotationRegistry;
75
use Doctrine\Common\Collections\ArrayCollection;
86
use Doctrine\Common\Util\ClassUtils;
97
use Doctrine\ORM\EntityManagerInterface;

Tests/EventListener/LifecycleEventsListenerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace W3C\LifecycleEventsBundle\Tests\EventListener;
44

5-
use Doctrine\Common\Annotations\AnnotationReader;
6-
use Doctrine\Common\Annotations\AnnotationRegistry;
7-
use Doctrine\Common\Annotations\Reader;
85
use Doctrine\Common\Util\ClassUtils;
96
use Doctrine\ORM\EntityManagerInterface;
107
use Doctrine\ORM\Event\LifecycleEventArgs;
@@ -40,11 +37,6 @@ class LifecycleEventsListenerTest extends TestCase
4037
*/
4138
private $dispatcher;
4239

43-
/**
44-
* @var Reader
45-
*/
46-
private $reader;
47-
4840
/**
4941
* @var EntityManagerInterface|MockObject
5042
*/

Tests/Services/AnnotationGetterTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace W3C\LifecycleEventsBundle\Tests\Services;
44

5-
use Doctrine\Common\Annotations\AnnotationReader;
65
use Doctrine\ORM\Mapping\ClassMetadata;
76
use PHPUnit\Framework\TestCase;
87
use PHPUnit\Framework\MockObject\MockObject;
@@ -36,8 +35,7 @@ public function setUp() : void
3635
->disableOriginalConstructor()
3736
->getMock();
3837

39-
$reader = new AnnotationReader();
40-
$this->annotationGetter = new AnnotationGetter($reader);
38+
$this->annotationGetter = new AnnotationGetter();
4139
}
4240

4341
public function testGetAnnotation()

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"symfony/yaml": "^5.0|^6.0",
2020
"symfony/event-dispatcher": "^5.0|^6.0",
2121
"doctrine/orm": "^2.0",
22-
"doctrine/persistence": "^1.3|^2.0|^3.0",
23-
"doctrine/annotations": "^1.13|^2.0"
22+
"doctrine/persistence": "^1.3|^2.0|^3.0"
2423
},
2524
"require-dev": {
2625
"phpunit/phpunit": "^9.5.25",

0 commit comments

Comments
 (0)