Skip to content

Commit

Permalink
Compatibility with doctrine/annotations 2
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Dec 20, 2022
1 parent 5c9b129 commit 4ce2df9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Tests/Loader/AnnotationClassLoaderWithAnnotationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ protected function configureRoute(Route $route, \ReflectionClass $class, \Reflec
{
}
};
AnnotationRegistry::registerLoader('class_exists');
if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
AnnotationRegistry::registerLoader('class_exists');
}
}

public function testDefaultRouteName()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"symfony/yaml": "^4.4|^5.0|^6.0",
"symfony/expression-language": "^4.4|^5.0|^6.0",
"symfony/dependency-injection": "^4.4|^5.0|^6.0",
"doctrine/annotations": "^1.12",
"doctrine/annotations": "^1.12|^2",
"psr/log": "^1|^2|^3"
},
"conflict": {
Expand Down

0 comments on commit 4ce2df9

Please sign in to comment.