File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 17
17
use Doctrine \ORM \EntityManagerInterface ;
18
18
use Doctrine \ORM \EntityRepository ;
19
19
use Sensio \Bundle \FrameworkExtraBundle \Configuration \ParamConverter ;
20
+ use Symfony \Bridge \Doctrine \ArgumentResolver \EntityValueResolver ;
20
21
use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
21
22
use Symfony \Bundle \FrameworkBundle \KernelBrowser ;
22
23
use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
@@ -317,9 +318,11 @@ public function configureDependencies(DependencyBuilder $dependencies): void
317
318
'security-csrf '
318
319
);
319
320
321
+ // @legacy - Remove dependency when support for Symfony <6.2 is dropped
320
322
$ dependencies ->addClassDependency (
321
323
ParamConverter::class,
322
- 'annotations '
324
+ 'annotations ' ,
325
+ !class_exists (EntityValueResolver::class) // sensio/framework-extra-bundle dependency is not required when using symfony 6.2+
323
326
);
324
327
}
325
328
}
You can’t perform that action at this time.
0 commit comments