This repository was archived by the owner on Feb 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 12
12
],
13
13
"require" : {
14
14
"php" : " >=7.2.5" ,
15
- "doctrine/annotations" : " ^1.0" ,
15
+ "doctrine/annotations" : " ^1.0|^2.0 " ,
16
16
"symfony/config" : " ^4.4|^5.0|^6.0" ,
17
17
"symfony/dependency-injection" : " ^4.4|^5.0|^6.0" ,
18
18
"symfony/framework-bundle" : " ^4.4|^5.0|^6.0" ,
Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ public function testServiceOptionIsNotAllowedOnMethod()
110
110
public function testLoad ()
111
111
{
112
112
$ loader = new AnnotatedRouteControllerLoader (new AnnotationReader ());
113
- AnnotationRegistry::registerLoader ('class_exists ' );
113
+ if (method_exists (AnnotationRegistry::class, 'registerLoader ' )) {
114
+ AnnotationRegistry::registerLoader ('class_exists ' );
115
+ }
114
116
115
117
$ rc = $ loader ->load ('Sensio\Bundle\FrameworkExtraBundle\Tests\Routing\Fixtures\FoobarController ' );
116
118
@@ -135,7 +137,9 @@ public function testLoad()
135
137
public function testInvokableControllerLoad ()
136
138
{
137
139
$ loader = new AnnotatedRouteControllerLoader (new AnnotationReader ());
138
- AnnotationRegistry::registerLoader ('class_exists ' );
140
+ if (method_exists (AnnotationRegistry::class, 'registerLoader ' )) {
141
+ AnnotationRegistry::registerLoader ('class_exists ' );
142
+ }
139
143
140
144
$ rc = $ loader ->load ('Sensio\Bundle\FrameworkExtraBundle\Tests\Routing\Fixtures\InvokableController ' );
141
145
You can’t perform that action at this time.
0 commit comments